Commit a5822e51 authored by Seblu's avatar Seblu
Browse files

Add alias to completion of command

parent 4da970f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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'''