mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
Initial commit: Added new files to the git repo: aider/commands.py
This commit is contained in:
parent
d24cbf9ffa
commit
82ee7fe0a5
1 changed files with 18 additions and 0 deletions
18
aider/commands.py
Normal file
18
aider/commands.py
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue