Skip to content
Snippets Groups Projects
Commit a5822e51 authored by Seblu's avatar Seblu
Browse files

Add alias to completion of command

parent 4da970f7
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ class Cli(object):
stripped = comp.get_buf()[:comp.get_begin() + 1].lstrip()
if texte == "" and stripped != "":
return None
return [ c for c in Command.list() if c.startswith(texte) ]
return [ c for c in Command.list() + self.alias.keys() if c.startswith(texte) ]
class CliHandler(RpcHandler):
'''Handle RPC incoming request'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment