Documentation ¶
Overview ¶
Package cmd implements the command line interface
Package cmd implements the command line interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var App = &cli.App{ Name: "gcy", Usage: "gcy COMMAND CONFIG_FILE [KEYPATH]", Authors: []*cli.Author{ &cli.Author{ Name: "Blink Health", Email: "opensource@blinkhealth.com", }, }, Flags: []cli.Flag{ &cli.BoolFlag{ Name: "verbose", Value: false, Aliases: []string{"v"}, Usage: "Print debug statements", }, }, Before: func(ctx *cli.Context) error { if ctx.Bool("verbose") { log.SetLevel(log.DebugLevel) if ctx.IsSet("generate-bash-completion") { return nil } log.Debug("Verbose output enabled") } return nil }, Commands: []*cli.Command{}, EnableBashCompletion: true, BashComplete: autocomplete.CommandAutocomplete, CommandNotFound: func(ctx *cli.Context, name string) { _ = cli.ShowAppHelp(ctx) log.Errorf("Unknown command <%s>", name) os.Exit(1) }, }
View Source
var KeyFlags = util.KeyFlags()
Functions ¶
Types ¶
type CommandError ¶
type CommandError struct {
// contains filtered or unexported fields
}
CommandError encodes a message and exit codes
func (CommandError) Error ¶
func (err CommandError) Error() string
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package autocomplete provides helpers for shell completion
|
Package autocomplete provides helpers for shell completion |
Package util supports the go-config-yourself commands and CLI
|
Package util supports the go-config-yourself commands and CLI |
Click to show internal directories.
Click to hide internal directories.