Configs.getconfig
— Functiongetconfig([x])
Returns a configuration value for given configuration path x
The returned value may be absolute or a NamedTuple
, which can be further accessed with the syntax: value.x.y
Configs.hasconfig
— Methodhasconfig(x)
Returns a Bool
indicating if the given path x
exists.
Configs.initconfig
— Methodinitconfig(; <keyword arguments>)
Optionally override the configs environment.
Automatically called on first getconfig
, hasconfig
or setconfig!
Can only be called once.
Alternatively, set the corresponding ENV
variables DEPLOYMENT_KEY
or CONFIGS_DIRECTORY
to preference
Arguments
deployment_key::String
: TheENV
key that defines the intended deployment (eg. production, staging, etc.)
Default: DEPLOYMENT
configs_directory::String
: The directory containing config definitions
May be relative to project root or absolute Default: configs
Configs.setconfig!
— Method