Skip to main content

cmd_keys_add

Function cmd_keys_add 

Source
pub fn cmd_keys_add(chave: &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 escrever_config_xdg which implements deduplication and chmod 600.