Updated Branches: refs/heads/master 35d5070ca -> 8e64f3401
cli: autocomplete to assignment, adds syntactic sugar Signed-off-by: Rohit Yadav <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/8e64f340 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/8e64f340 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/8e64f340 Branch: refs/heads/master Commit: 8e64f34012ece732ab8b5944e24ddb164a8c0dc2 Parents: 35d5070 Author: Rohit Yadav <[email protected]> Authored: Wed Nov 7 18:33:42 2012 +0530 Committer: Rohit Yadav <[email protected]> Committed: Wed Nov 7 18:34:23 2012 +0530 ---------------------------------------------------------------------- tools/cli/cloudmonkey/cloudmonkey.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/8e64f340/tools/cli/cloudmonkey/cloudmonkey.py ---------------------------------------------------------------------- diff --git a/tools/cli/cloudmonkey/cloudmonkey.py b/tools/cli/cloudmonkey/cloudmonkey.py index 1f1896d..7a42b0b 100644 --- a/tools/cli/cloudmonkey/cloudmonkey.py +++ b/tools/cli/cloudmonkey/cloudmonkey.py @@ -292,7 +292,8 @@ class CloudStackShell(cmd.Cmd): autocompletions = self.cache_verbs[verb].keys() search_string = subject else: # Complete subject params - autocompletions = self.cache_verbs[verb][subject][1] + autocompletions = map(lambda x: x + "=", + self.cache_verbs[verb][subject][1]) search_string = text return [s for s in autocompletions if s.startswith(search_string)]
