Skip to content

Commit

Permalink
refactor(cmd): Simplify rootCmd structure by removing unused suggesti…
Browse files Browse the repository at this point in the history
…ons and aliases
  • Loading branch information
AlbinoGeek committed May 20, 2024
1 parent e6a79f0 commit 9a460d1
Showing 1 changed file with 5 additions and 41 deletions.
46 changes: 5 additions & 41 deletions cmd/flower/rootCmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,47 +43,11 @@ func init() {
}

var rootCmd = &cobra.Command{
Use: APPNAME,
Version: APPVERSION,
Short: "",
Long: "",
Args: cobra.ArbitraryArgs,
SuggestFor: []string{"flower", "flour", "flourish"},
ValidArgs: []string{
"help",
"cache",
"install",
"list",
"new",
"remove",
"search",
"update",
},
ArgAliases: []string{
"?",

"c",

"i",
"add",

"l",
"ls",

"n",
"create",

"r",
"rm",
"delete",

"s",
"find",

"u",
"up",
"upgrade",
},
Use: APPNAME,
Version: APPVERSION,
Short: "",
Long: "",
Args: cobra.NoArgs,
PersistentPreRunE: func(cmd *cobra.Command, args []string) (err error) {
if gameInstallPath, err = resolveGamePath(gameInstallPath); err != nil {
return err
Expand Down

0 comments on commit 9a460d1

Please sign in to comment.