mirror of
https://github.com/neilotoole/sq.git
synced 2024-11-28 21:11:48 +03:00
19 lines
286 B
Go
19 lines
286 B
Go
package cli
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
func newHelpCmd() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "help",
|
|
Short: "Show sq help",
|
|
Hidden: true,
|
|
RunE: execHelp,
|
|
}
|
|
|
|
return cmd
|
|
}
|
|
|
|
func execHelp(cmd *cobra.Command, _ []string) error {
|
|
return cmd.Root().Help()
|
|
}
|