fn set<W: Write>(
config: &mut Config,
ui: &mut Ui<W>,
key: &str,
value: Option<&str>,
) -> Result<()>Expand description
Stores a configuration value, either from the CLI argument or an interactive prompt.
Empty values are rejected so callers use unset to remove keys instead of
silently writing blank entries.