Closed rohityadavcloud closed 5 years ago
It sounds great ~
@chzyer thanks, I was expecting some docs on writing our own completion. Can you help?
Closing, figured out a way though it would be great to have a high level method/function instead; https://github.com/apache/cloudstack-cloudmonkey/blob/master/cli/completer.go
I've a API/command I'm trying to support, for example:
However, this can take multiple options such as
id=
andstate=
etc. However, I would also like to provide auto-completion for the args, for example when user type tab-tab onid=
, this might require calling a HTTP api to get args/params for this for exampleone, two, three
. However, whenid=value
is completed the dynamic auto-completion method fails to show the returned[]string
.