Function tide_disco::compose_settings

source ยท
pub fn compose_settings<Args: CommandFactory>(
    org_name: &str,
    app_name: &str,
    app_defaults: &[(&str, &str)],
) -> Result<Config, ConfigError>
Expand description

Get the application configuration

Build the configuration from

  • Defaults in the tide-disco source
  • Defaults passed from the app
  • A configuration file from the app
  • Command line arguments
  • Environment variables

Last one wins.

Environment variables have a prefix of the given app_name in upper case with hyphens converted to underscores. Hyphens are illegal in environment variables in bash, et.al..