diff options
-rw-r--r-- | conf.d/etc/bash_completion.d/xds-cli | 5 | ||||
-rw-r--r-- | main.go | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/conf.d/etc/bash_completion.d/xds-cli b/conf.d/etc/bash_completion.d/xds-cli index b3618a6..bca4251 100644 --- a/conf.d/etc/bash_completion.d/xds-cli +++ b/conf.d/etc/bash_completion.d/xds-cli @@ -9,4 +9,7 @@ _cli_bash_autocomplete() { return 0 } -complete -F _cli_bash_autocomplete xds-cli +# FIXME: Disable completion for now, because it's not working with options +# (eg. --label) and prevents to complete local path +# (IOW current function only completes command and sub-commands) +# complete -F _cli_bash_autocomplete xds-cli @@ -32,7 +32,6 @@ import ( "gerrit.automotivelinux.org/gerrit/src/xds/xds-agent.git/lib/xaapiv1" common "gerrit.automotivelinux.org/gerrit/src/xds/xds-common.git/golib" "github.com/Sirupsen/logrus" - "github.com/joho/godotenv" "github.com/urfave/cli" ) @@ -149,7 +148,10 @@ func main() { app.Metadata["version"] = AppVersion app.Metadata["git-tag"] = AppSubVersion app.Metadata["logger"] = Log - app.EnableBashCompletion = true + // FIXME: Disable completion for now, because it's not working with options + // (eg. --label) and prevents to complete local path + // (IOW current function only completes command and sub-commands) + app.EnableBashCompletion = false // Create env vars help dynDesc := "\nENVIRONMENT VARIABLES:" |