From a5822e5152e7acb5c4c6e1ee7545721f6f2e53a7 Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Sat, 8 Jan 2011 03:46:27 +0100 Subject: [PATCH] Add alias to completion of command --- cccli/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cccli/cli.py b/cccli/cli.py index 54639fa..6290d28 100644 --- a/cccli/cli.py +++ b/cccli/cli.py @@ -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''' -- GitLab