persist_env_value

Function persist_env_value 

Source
pub fn persist_env_value(key: &str, value: &str) -> Result<(), PathError>
Expand description

Persist a key=value pair into the .env file.

If the key already exists, its value is updated. If the key doesn’t exist, it is appended to the file.