Skip to main content

Module profile

Module profile 

Source
Expand description

profile add/list/use actions — pure config operations, no printing, serde models out (declaration order = golden field order).

Structs§

ProfileAddResult
Result of profile add (declaration order = golden field order).
ProfileListResult
Result of profile list.
ProfileSummary
One profile list row — auth_kind is a safe kind string, NEVER a secret or env value.
ProfileUseResult
Result of profile use.

Functions§

add
Add (or overwrite) a profile and persist the config (0600).
list
List profiles (name-sorted via BTreeMap order).
use_profile
Switch the active profile. A missing config file behaves like an unknown profile (load yields the empty default, so the name simply is not in the known list) — exit 3, same class.