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
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.