Enable autocomplete for top-level commands

This commit is contained in:
Jeremy Voorhis 2017-10-13 10:39:23 -07:00
parent 001d632bcd
commit 40625777c1
1 changed files with 7 additions and 5 deletions

12
main.go
View File

@ -206,11 +206,13 @@ func wrappedMain() int {
}
cli := &cli.CLI{
Args: args,
Commands: Commands,
HelpFunc: excludeHelpFunc(Commands, []string{"plugin"}),
HelpWriter: os.Stdout,
Version: version.Version,
Args: args,
Autocomplete: true,
Commands: Commands,
HelpFunc: excludeHelpFunc(Commands, []string{"plugin"}),
HelpWriter: os.Stdout,
Name: "packer",
Version: version.Version,
}
exitCode, err := cli.Run()