Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringFlag ¶
type StringFlag struct { cli.StringFlag Placeholder string Required bool }
StringFlag represents a flag which satisfies the github.com/urfave/cli.Flag interface while also supporting the concept of a default value and required flag.
func New ¶
func New(name, placeholder, usage, value, envvar string, required bool) StringFlag
New returns a new StringFlag using the provided information
func (StringFlag) String ¶
func (sf StringFlag) String() string
String returns a string for explaining this flag, used by github.com/urfave/cli to print out help text.
Click to show internal directories.
Click to hide internal directories.