Skip to main content

sanitize_profile_for_env

Function sanitize_profile_for_env 

Source
fn sanitize_profile_for_env(name: &str) -> String
Expand description

Uppercase a profile name and replace any non-alphanumeric character with _ so it can be embedded in a shell-legal env var identifier like MZ_PROFILE_MY_PROD_PASSWORD.