Documentation ¶
Overview ¶
Package enum implements the generic logic to manage enum values for Cobra.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enum ¶
type Enum struct { Value string // contains filtered or unexported fields }
Enum implements the flag interface. It can be used as a base for new flags that can have a limited set of values.
func NewEnum ¶
NewEnum returns an enum struct. The firs argument is a set of values allowed for the flag. The second argument is the default Value of the flag.
Click to show internal directories.
Click to hide internal directories.