Enable autocomplete for top-level commands
This commit is contained in:
parent
001d632bcd
commit
40625777c1
12
main.go
12
main.go
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue