collab: Add support for reading boolean values from .env.toml
(#16317)
This PR adds support for reading boolean values from `.env.toml`, since it wasn't supported previously. Release Notes: - N/A
This commit is contained in:
parent
9233418cb8
commit
583959f82a
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ fn add_vars(env_content: String, vars: &mut Vec<(String, String)>) -> Result<()>
|
|||
toml::Value::String(value) => value,
|
||||
toml::Value::Integer(value) => value.to_string(),
|
||||
toml::Value::Float(value) => value.to_string(),
|
||||
toml::Value::Boolean(value) => value.to_string(),
|
||||
_ => panic!("unsupported TOML value in .env.toml for key {}", key),
|
||||
};
|
||||
vars.push((key, value));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue