Initial commit: Added new files to the git repo: aider/commands.py

This commit is contained in:
Paul Gauthier 2023-05-10 11:08:24 -07:00
parent d24cbf9ffa
commit 82ee7fe0a5

18
aider/commands.py Normal file
View file

@ -0,0 +1,18 @@
class Commands:
def cmd_help(self):
print('help')
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
def run(self, inp, console):
console.print('[red]', inp)
words = inp.strip().split()