sq/cli/cmd_help.go

19 lines
286 B
Go
Raw Normal View History

2020-08-06 20:58:47 +03:00
package cli
import "github.com/spf13/cobra"
func newHelpCmd() *cobra.Command {
2020-08-06 20:58:47 +03:00
cmd := &cobra.Command{
Use: "help",
Short: "Show sq help",
Hidden: true,
RunE: execHelp,
2020-08-06 20:58:47 +03:00
}
return cmd
2020-08-06 20:58:47 +03:00
}
2023-04-01 11:38:32 +03:00
func execHelp(cmd *cobra.Command, _ []string) error {
2020-08-06 20:58:47 +03:00
return cmd.Root().Help()
}