pub fn upsert_token_entry(path: &Path, name: &str, token: &str) -> Result<()>Expand description
Set <name>=<token> in the file, keeping every other line as it is:
comments, blank lines, order, and above all _base. A duplicate of
name left by a hand edit collapses to the one updated line. Atomic and
0600, and nothing else in the file is touched — a previous token for the
same name is replaced in the file but never revoked on the bus.