Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CLISpecialNameRegex = regexp.MustCompile(`(arg):(\d+)`)
Functions ¶
func NormalizeFilePath ¶
Replaces ~/ with the users home directory, ./ with the woring directory, and replaces any parses any environment variables.
Types ¶
type File ¶
type File struct { // The path to the file Path string // A map of key/values that was loaded from the file Config map[string]string }
func (File) AbsolutePath ¶
type Loader ¶
type Loader struct { // The context that is passed when using a codegangsta/cli action CLI *cli.Context // The struct that the config values will be loaded into Config interface{} // A slice of paths to files that should be used as config files DefaultConfigFilePaths []string // The file that was used when loading this configuration File *File }
Click to show internal directories.
Click to hide internal directories.