Documentation
¶
Overview ¶
Package config is where KairoCode's settings are: kairocode.json, the user's ($XDG_CONFIG_HOME/kairocode, else ~/.config/kairocode) and a project's (at its root), and the user's other files beside it. It finds and reads them; what a section means is its reader's.
Index ¶
Constants ¶
const File = "kairocode.json"
File is the settings file's name, in a project and in the user's folder.
Variables ¶
This section is empty.
Functions ¶
func Home ¶
func Home() string
Home is the user's folder of settings, of every program: $XDG_CONFIG_HOME, else ~/.config; "" if there is no home to find it in.
func ProjectFile ¶
ProjectFile is the kairocode.json of the project in dir.
Types ¶
type Layer ¶
Layer is one kairocode.json as read.
func Layers ¶
Layers are the user's kairocode.json, then the project's in dir (none for dir ""), each if it is there. One there but not readable is left out and told in the error, with the others still given: a reader that goes on without it may. With no home to find it in (Home ""), the user has none: a path relative to the daemon's folder could be a project's, which must not set what is the user's alone.