Documentation ¶
Index ¶
- func MustGetBool(cmd *cobra.Command, name string) bool
- func MustGetDuration(cmd *cobra.Command, name string) time.Duration
- func MustGetInt(cmd *cobra.Command, name string) int
- func MustGetString(cmd *cobra.Command, name string) string
- func MustGetStringSlice(cmd *cobra.Command, name string) []string
- func MustGetUint32(cmd *cobra.Command, name string) uint32
- func MustGetUint8(cmd *cobra.Command, name string) uint8
- func NewFlagSet(name string) *pflag.FlagSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustGetBool ¶
MustGetBool returns a bool flag or fatals if an error occurs.
func MustGetDuration ¶ added in v0.0.6
MustGetDuration returns a time.Duration flag or fatals if an error occurs.
func MustGetInt ¶ added in v0.0.16
MustGetInt returns a int flag or fatals if an error occurs.
func MustGetString ¶
MustGetString returns a string flag or fatals if an error occurs.
func MustGetStringSlice ¶ added in v0.0.9
MustGetStringSlice returns a []string flag or fatals if an error occurs.
func MustGetUint32 ¶ added in v0.0.162
MustGetUint32 returns a uint32 flag or fatals if an error occurs.
func MustGetUint8 ¶ added in v0.0.162
MustGetUint8 returns a uint8 flag or fatals if an error occurs.
func NewFlagSet ¶ added in v0.0.170
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.