Module configy.easy
Provide the suggested default configuration for applications
This module provide the basic tool to quickly get configuration parsing with environment and command-line overrides. It assumes a YAML configuration.
Note
This module name is inspired inspired by cURL's 'easy' API.
Functions
Name | Description |
---|---|
parseConfigFile(args, strict)
|
Parses the config file or string and returns a Config instance.
|
parseConfigFileSimple(path, strict)
|
Attempt to read and deserialize the config file at path into the struct
type Config and print any error on failure
|
parseConfigString(data, path, strict)
|
Parses the config file or string and returns a Config instance.
|
Structs
Name | Description |
---|---|
CLIArgs
|
Command-line arguments |