mirror of
https://github.com/neilotoole/sq.git
synced 2024-11-28 03:53:07 +03:00
3180334c0c
* refactor: partially moved over driver.Tuning params to options * All knobs moved to options * sq config edit: now has comments for options * Major work complete on config/options overhaul * Major work complete on config/options overhaul * Updated help text for 'sq version'
22 lines
312 B
Go
22 lines
312 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func newHelpCmd() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "help",
|
|
Short: "Show help",
|
|
Long: "Show help.",
|
|
Hidden: true,
|
|
RunE: execHelp,
|
|
}
|
|
|
|
return cmd
|
|
}
|
|
|
|
func execHelp(cmd *cobra.Command, _ []string) error {
|
|
return cmd.Root().Help()
|
|
}
|