create the filename of the config file to load based on one, or multiple, command line argument(s).
create the filename of the config file to load based on one, or multiple, command line argument(s). Override it as a def or a lazy val, but DO NOT use a val as it would just fix it to the value of the default.
maybe a name of a config file.
the prefix to use to search for values in the config file.
the prefix to use to search for values in the config file. The values will be searched with the key: configPrefix + '.' + argumentName
the prefix to use. Should not include the trailing '.'
add a config to the stack of files to load
the list of config to loads, the rightmost config will be the preferred one, the others will be used as fallback.
the list of config to loads, the rightmost config will be the preferred one, the others will be used as fallback. (in order from right to left)
the Config to use to lookup values
should the default config from typesafe lib (i.
should the default config from typesafe lib (i.e. the one loaded by
ConfigFactory.load()
) be the leftmost fallback in the configFiles list.
ConfigFactory.load() }}} fallback in the configFiles list.
this mixin trait allows you to create the name of the config file to load from an argument on the command line. An application of this is to specify an environment on the command line and load different configurations based on the environment (prod, test, dev, ...), could also change depending on the user, or the server used, etc.