Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Completion = cli.Command{ Name: "complete", Aliases: []string{"completion"}, Usage: "Output shell completion code", ArgsUsage: "SHELL", Description: "Output shell completion code for bash, zsh or fish.", Action: func(c *cli.Context) error { if c.NArg() == 0 { return bashCompletion(c) } if c.NArg() != 1 { return cli.ShowSubcommandHelp(c) } switch c.Args().First() { case "bash": return bashCompletion(c) case "fish": return fishCompletion(c) case "zsh": return zshCompletion(c) default: return fmt.Errorf("only bash, fish or zsh are supported") } }, }
View Source
var DefaultsPath string
DefaultsPath is the path to default configuration files set at build time
Functions ¶
func GetConfigFromContext ¶
func GetFlagsAndMetadata ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.