Documentation
¶
Overview ¶
Package config loads jip's persistent preferences from TOML config files.
Two locations are consulted, and each may carry a .local. sibling holding machine-specific overrides that should not be shared:
- Global: <user config dir>/jip/config.toml (e.g. ~/.config/jip/config.toml) then <user config dir>/jip/config.local.toml
- Repo: .jip.toml in the repository root then .jip.local.toml (gitignore this)
Later values override earlier values, so a more specific location always wins and a .local. file overrides its own sibling. CLI flags override all config values (enforced by the caller, which only applies config to flags not set on the command line).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Dir string
Dir overrides the global config directory for testing. If empty, os.UserConfigDir() is used.
Functions ¶
func GlobalPath ¶
GlobalPath returns the path of the global config file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.