mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-26 17:51:34 +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()
|
|
}
|