Documentation ¶
Overview ¶
* Project: CurveCli * Created Date: 2022-05-09 * Author: chengyi (Cyber-SiKu)
Index ¶
- Constants
- Variables
- func AvailableValueStr(flag *pflag.Flag, cmdtype cmdType) string
- func GetCmdType(cmd *cobra.Command) cmdType
- func RootCommand(cmd *cobra.Command) string
- func SetFlagErrorFunc(cmd *cobra.Command)
- func SetHelpTemplate(cmd *cobra.Command)
- func SetUsageTemplate(cmd *cobra.Command)
- func SetupCompletionCommand(completionCmd *cobra.Command)
Constants ¶
View Source
const ( BSNAME = "bs" FSNAME = "fs" Unknown cmdType = iota RootCmd BsCmd FsCmd )
Variables ¶
View Source
var ( NoArgs = cli.NoArgs RequiresMinArgs = cli.RequiresMinArgs RequiresMaxArgs = cli.RequiresMaxArgs RequiresRangeArgs = cli.RequiresRangeArgs ExactArgs = cli.ExactArgs ShowHelp = command.ShowHelp )
Functions ¶
func AvailableValueStr ¶
func GetCmdType ¶
return the type of command (bs or fs or root)
func RootCommand ¶
func SetFlagErrorFunc ¶
func SetHelpTemplate ¶
func SetUsageTemplate ¶
func SetupCompletionCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.