Commit 7095af66 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧 Committed by Romain Bignon

Add subcommands to the bash completion

parent d2988f65
This diff is collapsed.
......@@ -486,6 +486,13 @@ class ReplApplication(ConsoleApplication, MyCmd):
def completenames(self, text, *ignored):
return [name for name in Cmd.completenames(self, text, *ignored) if name not in self.hidden_commands]
def _shell_completion_items(self):
items = super(ReplApplication, self)._shell_completion_items()
set(self.completenames('')) -
set(('debug', 'condition', 'count', 'formatter', 'logging', 'select', 'quit')))
return items
def path_completer(self, arg):
dirname = os.path.dirname(arg)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment