Skip to main content

cmd_keys_add

Function cmd_keys_add 

Source
pub fn cmd_keys_add(key: &str) -> Result<()>
Expand description

Adds a new key to the XDG storage.

If the key already exists, prints a warning and returns without modifying the config. Re-uses write_xdg_config which implements deduplication and chmod 600.