Documentation
¶
Overview ¶
Package config reads and writes ~/.ccl/config.yaml.
Load is read-only: it normalizes in memory so every caller sees the same derived values, but never writes. Every change goes through Update, which holds an exclusive file lock across re-read → change → atomic write, so a long-running command (ccl set, an OAuth login) cannot overwrite what another ccl process changed in the meantime.
Index ¶
Constants ¶
const CurrentVersion = 2
CurrentVersion is the config schema this ccl writes.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
func ConfigPath() string
func Load ¶
Load reads the config and normalizes it in memory. It never writes; a missing file yields a fresh-install config.
func Save ¶
Save replaces the whole config. Prefer Update, which cannot lose a change another process made since cfg was loaded.
Types ¶
This section is empty.