foundry_config::utils

Function get_available_profiles

Source
pub fn get_available_profiles(
    toml_path: impl AsRef<Path>,
) -> Result<Vec<String>>
Expand description

Returns all available profile keys in a given .toml file

i.e. The toml below would return would return ["default", "ci", "local"]

[profile.default]
...
[profile.ci]
...
[profile.local]