This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git

commit 48cda52f5efd1cc23fb55cac111ce3f457d3adad
Author: Rohit Yadav <[email protected]>
AuthorDate: Sun Apr 22 20:57:55 2018 +0530

    completer: use response keys to show filter options
    
    Signed-off-by: Rohit Yadav <[email protected]>
---
 cli/completer.go | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/cli/completer.go b/cli/completer.go
index 2444fd2..9fb8bd8 100644
--- a/cli/completer.go
+++ b/cli/completer.go
@@ -173,6 +173,14 @@ func (t *autoCompleter) Do(line []rune, pos int) (options 
[][]rune, offset int)
                                offset = 0
                                return
                        }
+                       if arg.Type == config.FAKE && arg.Name == "filter=" {
+                               options = [][]rune{}
+                               offset = 0
+                               for _, key := range apiFound.ResponseKeys {
+                                       options = append(options, []rune(key))
+                               }
+                               return
+                       }
 
                        argName := strings.Replace(arg.Name, "=", "", -1)
                        var autocompleteAPI *config.API

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to