2020-08-06 20:58:47 +03:00
|
|
|
package cli
|
|
|
|
|
2023-05-03 15:36:10 +03:00
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
2020-08-06 20:58:47 +03:00
|
|
|
|
2021-02-22 10:37:00 +03:00
|
|
|
func newHelpCmd() *cobra.Command {
|
2020-08-06 20:58:47 +03:00
|
|
|
cmd := &cobra.Command{
|
|
|
|
Use: "help",
|
2023-04-16 01:28:51 +03:00
|
|
|
Short: "Show help",
|
|
|
|
Long: "Show help.",
|
2020-08-06 20:58:47 +03:00
|
|
|
Hidden: true,
|
2021-02-22 10:37:00 +03:00
|
|
|
RunE: execHelp,
|
2020-08-06 20:58:47 +03:00
|
|
|
}
|
|
|
|
|
2021-02-22 10:37:00 +03:00
|
|
|
return cmd
|
2020-08-06 20:58:47 +03:00
|
|
|
}
|
|
|
|
|
2023-04-01 11:38:32 +03:00
|
|
|
func execHelp(cmd *cobra.Command, _ []string) error {
|
2020-08-06 20:58:47 +03:00
|
|
|
return cmd.Root().Help()
|
|
|
|
}
|