aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/mitchellh/cli/cli.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/mitchellh/cli/cli.go')
-rw-r--r--vendor/github.com/mitchellh/cli/cli.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/github.com/mitchellh/cli/cli.go b/vendor/github.com/mitchellh/cli/cli.go
index a25a582..c2dbe55 100644
--- a/vendor/github.com/mitchellh/cli/cli.go
+++ b/vendor/github.com/mitchellh/cli/cli.go
@@ -87,7 +87,7 @@ type CLI struct {
87 // should be set exactly to the binary name that is autocompleted. 87 // should be set exactly to the binary name that is autocompleted.
88 // 88 //
89 // Autocompletion is supported via the github.com/posener/complete 89 // Autocompletion is supported via the github.com/posener/complete
90 // library. This library supports both bash and zsh. To add support 90 // library. This library supports bash, zsh and fish. To add support
91 // for other shells, please see that library. 91 // for other shells, please see that library.
92 // 92 //
93 // AutocompleteInstall and AutocompleteUninstall are the global flag 93 // AutocompleteInstall and AutocompleteUninstall are the global flag
@@ -419,6 +419,11 @@ func (c *CLI) initAutocomplete() {
419func (c *CLI) initAutocompleteSub(prefix string) complete.Command { 419func (c *CLI) initAutocompleteSub(prefix string) complete.Command {
420 var cmd complete.Command 420 var cmd complete.Command
421 walkFn := func(k string, raw interface{}) bool { 421 walkFn := func(k string, raw interface{}) bool {
422 // Ignore the empty key which can be present for default commands.
423 if k == "" {
424 return false
425 }
426
422 // Keep track of the full key so that we can nest further if necessary 427 // Keep track of the full key so that we can nest further if necessary
423 fullKey := k 428 fullKey := k
424 429