support bash completion for commands, not for flags

This commit is contained in:
ngtuna
2016-07-17 02:21:15 +07:00
parent dc6c23238e
commit f09b640e90
3 changed files with 22 additions and 0 deletions
+1
View File
@@ -35,6 +35,7 @@ func main() {
app.Version = version.VERSION + " (" + version.GITCOMMIT + ")"
app.Author = "Skippbox Compose Contributors"
app.Email = "https://github.com/skippbox/kompose"
app.EnableBashCompletion = true
app.Before = cliApp.BeforeApp
app.Flags = append(command.CommonFlags())
app.Commands = []cli.Command{