Skip to content

Commit

Permalink
collab: Add support for reading boolean values from .env.toml (#16317)
Browse files Browse the repository at this point in the history
This PR adds support for reading boolean values from `.env.toml`, since
it wasn't supported previously.

Release Notes:

- N/A
  • Loading branch information
maxdeviant authored Aug 15, 2024
1 parent 9233418 commit 583959f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/collab/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 583959f

Please sign in to comment.