diff --git a/aider/getinput.py b/aider/getinput.py index 3b61dc78c..e58a44af7 100644 --- a/aider/getinput.py +++ b/aider/getinput.py @@ -18,6 +18,12 @@ class Commands: def cmd_ls(self): print('ls') + def get_commands(self): + commands = [] + for attr in dir(self): + if attr.startswith("cmd_"): + commands.append(attr[4:]) + return commands class FileContentCompleter(Completer): def __init__(self, fnames):