chore: better naming

main
sudo pacman -Syu 2022-02-07 21:00:53 +07:00
parent a9bba2b839
commit 4763f07878
1 changed files with 4 additions and 7 deletions

View File

@ -38,11 +38,8 @@ const (
)
var (
// flag aliases
verboseAliases = []string{"v"}
// command aliases
generateAliases = []string{"gen"}
aliasGenerate = []string{"gen"}
aliasVerbose = []string{"v"}
)
type App struct {
@ -58,12 +55,12 @@ func NewApp() *App {
Commands: []*cli.Command{
{
Name: commandGenerate,
Aliases: generateAliases,
Aliases: aliasGenerate,
Usage: usageGenerate,
Flags: []cli.Flag{
&cli.BoolFlag{
Name: flagVerbose,
Aliases: verboseAliases,
Aliases: aliasVerbose,
Usage: usageVerbose,
},
&cli.StringFlag{