Skip to main content

edit

Function edit 

Source
pub fn edit(
    current: &str,
    set: &BTreeMap<String, String>,
    unset: &[String],
) -> Result<String, String>
Expand description

current with set applied and unset removed, every other line (and comment) as it was. A name already there has its value replaced where it stands, a new one goes at the end.