Skip to main content

set_env_key

Function set_env_key 

Source
pub fn set_env_key(
    path: &Path,
    key: &str,
    value: &str,
    note: &str,
) -> Result<()>
Expand description

Set key in a .env file, preserving comments and the order of what is already there. Appends with a note when the key is absent.