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

View File

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