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.

Structs§

Edits
What an edit changes about a profile.
Removed
What removing a profile changed beyond the profile itself.

Enums§

EditError
StoreError

Functions§

edit
Change an existing profile in place, optionally renaming it.
remove
Delete a profile from the config file.
set_default
Point default_profile at an existing profile.
upsert
Add or update an account and, optionally, a profile pointing at it.