Documentation ¶
Overview ¶
Package flag need for convenient get object flag from lib cli.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIntFlag ¶
NewIntFlag create new IntFlag by options.
func NewStrFlag ¶
func NewStrFlag(name, usage string, options ...OptionString) *cli.StringFlag
NewStrFlag create new StringFlag by options.
Types ¶
type OptionString ¶
type OptionString func(f *cli.StringFlag)
OptionString params for build string flag.
func StrAliases ¶
func StrAliases(values ...string) OptionString
StrAliases set aliases for StringFlag.
func StrDefault ¶
func StrDefault(value string) OptionString
StrDefault set default value for StringFlag.
Click to show internal directories.
Click to hide internal directories.