mirror of
https://github.com/neilotoole/sq.git
synced 2024-11-28 12:33:44 +03:00
18 lines
306 B
Go
18 lines
306 B
Go
package cli
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
func newHelpCmd() (*cobra.Command, runFunc) {
|
|
cmd := &cobra.Command{
|
|
Use: "help",
|
|
Short: "Show sq help",
|
|
Hidden: true,
|
|
}
|
|
|
|
return cmd, execHelp
|
|
}
|
|
|
|
func execHelp(rc *RunContext, cmd *cobra.Command, args []string) error {
|
|
return cmd.Root().Help()
|
|
}
|