refactor: move flag to internal/common

This commit is contained in:
2021-12-19 15:55:55 +01:00
parent 467947edf2
commit 06f8078866
2 changed files with 13 additions and 13 deletions

View File

@ -18,18 +18,6 @@ import (
"github.com/urfave/cli/v2"
)
// Verbose stores the variable from VerboseFlag.
var Verbose bool
// VerboseFlag turns on/off verbose logging down to the INFO level.
var VerboseFlag = &cli.BoolFlag{
Name: "verbose",
Aliases: []string{"V"},
Value: false,
Destination: &Verbose,
Usage: "Show INFO messages",
}
func newAbraApp(version, commit string) *cli.App {
app := &cli.App{
Name: "abra",
@ -55,7 +43,7 @@ convenient command-line experience. See "abra autocomplete -h" for more.
AutoCompleteCommand,
},
Flags: []cli.Flag{
VerboseFlag,
internal.VerboseFlag,
internal.DebugFlag,
internal.NoInputFlag,
},