mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-29 19:24:26 +03:00
6870327508
Addressed #80
19 lines
289 B
Go
19 lines
289 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, args []string) error {
|
|
return cmd.Root().Help()
|
|
}
|