support bash completion for commands, not for flags

This commit is contained in:
ngtuna committed 2016-07-17 02:21:15 +07:00
1 parent dc6c23238e
commit f09b640e90
3 files changed
+22

No files matched your search

+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{