Skip to main content

Module store

Module store 

Source
Expand description

Writing the config file back.

auth login is the only path that edits configuration, and it edits a file people also write by hand — the docs tell them to. So the edit is surgical: toml_edit keeps existing comments, key order and formatting, and only the touched keys change. Serialising the whole struct back would silently delete whatever the user had written around it.

Enums§

StoreError

Functions§

set_default
Point default_profile at an existing profile.
upsert
Add or update an account and, optionally, a profile pointing at it.