mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
cli: autocomplete to assignment, adds syntactic sugar
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
35d5070ca3
commit
8e64f34012
@ -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)]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user