Skip to main content

remove_user_kv

Function remove_user_kv 

Source
pub fn remove_user_kv(key: &str) -> Result<bool, ConfigError>
Expand description

Remove a single user-scoped key from $XDG_CONFIG_HOME/mkit/config, mirroring write_user_kv’s read-modify-write-atomically shape but dropping the matching line instead of replacing it. Returns true iff a matching line was found and removed (a no-op unset — the key was already absent — returns false rather than erroring, so mkit config --unset on an already-unset key is idempotent).