Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ConfigPath is a global variable used to store the value of configFlag parsed from the flags for the cli.App // returned by NewApp. ConfigPath string // ConfigJSON is a global variable used to store the value of jsonFlag parsed from the flags for the cli.App // returned by NewApp. ConfigJSON string )
Functions ¶
func Handler ¶
Handler returns a cli.Option that configures a cli.App as a config CLI application that is configured with flags for a configuration file and configuration JSON. The application is configured with a "Before" hook that parses the values of the flag and stores it in the "ConfigPath" and "ConfigJSON" variables (and executes and "Before" hook that was previously defined).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.