Skip to main content

set

Function set 

Source
pub fn set(path: &Path, vars: &[(&str, &str)]) -> Result<(), String>
Expand description

Sets one or more NAME=value lines in the file at path: replaces an existing line for the same name, keeps all other lines and comments, and appends new names. Creates the file and its parent directory if needed, with file mode 0600 on Unix.