pub fn update<F>(path: impl AsRef<Path>, edit: F) -> Result<()>where F: FnOnce(&mut Map<String, Value>),
Update a settings object and commit it atomically.