Documentation ¶
Index ¶
- func AddCommand(c *cobra.Command, fc any)
- func CreateCmd(parent *cobra.Command, use, short string, obj interface{ ... }) *cobra.Command
- func InitFlags(f any, pf, persistent *pflag.FlagSet) error
- func NewVersionValue() *versionValue
- func Run()
- func RunCmd(parent *cobra.Command, use, short string, obj interface{ ... })
- func SplitSeps(s string, seps string) []string
- type CmdLongHelper
- type DefaultPlagValuesAware
- type Enum
- type EnumType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommand ¶
func NewVersionValue ¶
func NewVersionValue() *versionValue
Types ¶
type CmdLongHelper ¶
type CmdLongHelper interface {
LongHelp() string
}
type DefaultPlagValuesAware ¶
Click to show internal directories.
Click to hide internal directories.