chore: better naming
parent
a9bba2b839
commit
4763f07878
|
@ -38,11 +38,8 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// flag aliases
|
aliasGenerate = []string{"gen"}
|
||||||
verboseAliases = []string{"v"}
|
aliasVerbose = []string{"v"}
|
||||||
|
|
||||||
// command aliases
|
|
||||||
generateAliases = []string{"gen"}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type App struct {
|
type App struct {
|
||||||
|
@ -58,12 +55,12 @@ func NewApp() *App {
|
||||||
Commands: []*cli.Command{
|
Commands: []*cli.Command{
|
||||||
{
|
{
|
||||||
Name: commandGenerate,
|
Name: commandGenerate,
|
||||||
Aliases: generateAliases,
|
Aliases: aliasGenerate,
|
||||||
Usage: usageGenerate,
|
Usage: usageGenerate,
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: flagVerbose,
|
Name: flagVerbose,
|
||||||
Aliases: verboseAliases,
|
Aliases: aliasVerbose,
|
||||||
Usage: usageVerbose,
|
Usage: usageVerbose,
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
|
|
Loading…
Reference in New Issue