mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
feat: Add get_raw_completions method to Commands class
This commit is contained in:
parent
6c2c3942bf
commit
ee4de6bd1c
1 changed files with 5 additions and 0 deletions
|
@ -163,6 +163,11 @@ class Commands:
|
||||||
def is_command(self, inp):
|
def is_command(self, inp):
|
||||||
return inp[0] in "/!"
|
return inp[0] in "/!"
|
||||||
|
|
||||||
|
def get_raw_completions(self, cmd):
|
||||||
|
cmd = cmd.replace("-", "_")
|
||||||
|
raw_completer = getattr(self, f"completions_raw_{cmd}", None)
|
||||||
|
return raw_completer
|
||||||
|
|
||||||
def get_completions(self, cmd):
|
def get_completions(self, cmd):
|
||||||
assert cmd.startswith("/")
|
assert cmd.startswith("/")
|
||||||
cmd = cmd[1:]
|
cmd = cmd[1:]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue