You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some subcommands have subcommands.
Currently when calling the parent subcommand one would expect to get the help with a list of available subcommands.
But you get nothing.
Example:
☁ ~ go-gitmoji-cli list -d
INFO[0000] Debug logs enabled
DEBU[0000] list called
☁ ~
Expected Behavior
you should get the help command for the subcommand.
Current Behavior
you get nothing
Steps To Reproduce
☁ ~ go-gitmoji-cli list -d
INFO[0000] Debug logs enabled
DEBU[0000] list called
☁ ~
Possible Solution
Remove the empty run cmd within the related subcommands
varListCmd=&cobra.Command{
Use: "list",
Short: "List all the available gitmojis",
Long: fmt.Sprintf(`The list is queried from the api %s.`, pkg.DefaultGitmojiApiUrl),
Run: func(cmd*cobra.Command, args []string) {
log.Debug("list called")
},
}
Additional Information/Context
No response
go-gitmoji-cli Version
v0.2.6-alpha
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Describe the bug
Some subcommands have subcommands.
Currently when calling the parent subcommand one would expect to get the help with a list of available subcommands.
But you get nothing.
Example:
Expected Behavior
you should get the help command for the subcommand.
Current Behavior
you get nothing
Steps To Reproduce
Possible Solution
Remove the empty run cmd within the related subcommands
Additional Information/Context
No response
go-gitmoji-cli Version
v0.2.6-alpha
The text was updated successfully, but these errors were encountered: