mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-01 11:27:15 +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()
|
|
}
|