Documentation
¶
Index ¶
- func BoolVarP(cmd *cobra.Command, flag *CommandFlag[bool], s string, v bool, u string)
- func StringBoolToPointer(strBool string) *bool
- func StringSliceVarP(cmd *cobra.Command, flag *CommandFlag[[]string], s string, v []string, ...)
- func StringVarP(cmd *cobra.Command, flag *CommandFlag[string], s string, v string, u string)
- type BatchValidator
- type CommandFlag
- type FlagValidator
- type FlagVariable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringBoolToPointer ¶
func StringSliceVarP ¶
func StringVarP ¶
Types ¶
type BatchValidator ¶
type BatchValidator struct {
EmptyValidators []FlagValidator
StringBoolValidators []*CommandFlag[string]
}
type CommandFlag ¶
type CommandFlag[T FlagVariable] struct { Name string Variable T }
type FlagValidator ¶
type FlagValidator interface {
// contains filtered or unexported methods
}
type FlagVariable ¶
Click to show internal directories.
Click to hide internal directories.