This PR implements variable substitution for &str and &[u8]. You can use either a custom map with your own variables, or Env or EnvBytes to directly use environment variables.
In the long syntax, you can give default values: ${hello:bar}. You can even have variables in the default value: ${XDG_CONFIG_HOME:$HOME/.config}/my-app/config.toml.
This PR implements variable substitution for
&str
and&[u8]
. You can use either a custom map with your own variables, orEnv
orEnvBytes
to directly use environment variables.In the long syntax, you can give default values:
${hello:bar}
. You can even have variables in the default value:${XDG_CONFIG_HOME:$HOME/.config}/my-app/config.toml
.