This commit is contained in:
Paul Gauthier 2025-01-10 15:08:15 -08:00
parent c939521f5f
commit f9c5cb73a2
3 changed files with 9 additions and 15 deletions

View file

@ -1061,18 +1061,15 @@ class Commands:
)
def cmd_ask(self, args):
"""Ask questions about the code base without editing any files.
If no prompt is provided, switches to ask mode."""
"""Ask questions about the code base without editing any files. If no prompt provided, switches to ask mode.""" # noqa
return self._generic_chat_command(args, "ask")
def cmd_code(self, args):
"""Ask for changes to your code.
If no prompt is provided, switches to code mode."""
"""Ask for changes to your code. If no prompt provided, switches to code mode.""" # noqa
return self._generic_chat_command(args, self.coder.main_model.edit_format)
def cmd_architect(self, args):
"""Enter architect mode to discuss high-level design and architecture.
If no prompt is provided, switches to architect mode."""
"""Enter architect mode to discuss high-level design and architecture. If no prompt provided, switches to architect mode.""" # noqa
return self._generic_chat_command(args, "architect")
def _generic_chat_command(self, args, edit_format):