Documentation
¶
Overview ¶
Package option provides utilities of option handling
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultStringValue = "__DEFAULT_STRING_VALUE__"
Functions ¶
func RegisterBoolFlag ¶
RegisterBoolFlag register bool flag to provided cmd and viper
func RegisterStringFlag ¶
func RegisterStringFlag(cmd *cobra.Command, flagConfig *StringFlag) error
RegisterStringFlag register string flag to provided cmd and viper
Types ¶
type CmdConfig ¶
type CmdConfig struct {
*CmdRawConfig
Out string
}
type CmdRawConfig ¶
type StringFlag ¶
StringFlag represents flag which can be specified as string
Click to show internal directories.
Click to hide internal directories.