mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-10 00:30:37 +08:00
adjusted private func placement
This commit is contained in:
parent
fc5fc3d381
commit
4aea8c4832
1 changed files with 12 additions and 10 deletions
|
|
@ -9,16 +9,6 @@ import (
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
func parseVerbosity(c *cli.Context) {
|
|
||||||
if c.Bool("V") {
|
|
||||||
logger.Verbosity = 1
|
|
||||||
} else if c.Bool("VV") {
|
|
||||||
logger.Verbosity = 2
|
|
||||||
} else if c.Bool("VVV") {
|
|
||||||
logger.Verbosity = 3
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetCommands - return commands that CLI uses
|
// GetCommands - return commands that CLI uses
|
||||||
func GetCommands(cliFlags []cli.Flag) []*cli.Command {
|
func GetCommands(cliFlags []cli.Flag) []*cli.Command {
|
||||||
return []*cli.Command{
|
return []*cli.Command{
|
||||||
|
|
@ -117,3 +107,15 @@ func GetCommands(cliFlags []cli.Flag) []*cli.Command {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// == Private funcs ==
|
||||||
|
|
||||||
|
func parseVerbosity(c *cli.Context) {
|
||||||
|
if c.Bool("V") {
|
||||||
|
logger.Verbosity = 1
|
||||||
|
} else if c.Bool("VV") {
|
||||||
|
logger.Verbosity = 2
|
||||||
|
} else if c.Bool("VVV") {
|
||||||
|
logger.Verbosity = 3
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue