Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is the on-disk declarative configuration file. It contains only stable fields suitable for dotfile management (url, username per profile). Runtime fields (JWT, current project, active profile pointer) live in State.
func Load ¶
Load reads the config file from disk. A missing file yields an empty Config (not an error) — the caller treats absence of credentials as an auth error only when an actual command needs them.
If the on-disk file is in the old shape (has current_profile at top level or any profile has jwt / current_project_id), Load migrates those fields into the state file automatically and rewrites config.json without them.