Documentation
¶
Overview ¶
Package config loads ~/.config/local-control-panel/config.toml and resolves the panel's state folder.
Index ¶
Constants ¶
View Source
const AppName = "local-control-panel"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Root string `toml:"root"`
ScanDepth int `toml:"scan_depth"`
Archive string `toml:"archive"`
Editor string `toml:"editor"`
RefreshSeconds int `toml:"refresh_seconds"`
GitHubUsers []string `toml:"github_users"`
Activity Activity `toml:"activity"`
Runs RunLogs `toml:"runs"`
StateDir string `toml:"state_dir"`
Projects map[string]Project `toml:"projects"`
Path string `toml:"-"` // file this was loaded from
CreatedDefaults bool `toml:"-"` // true when the file was written on this run
Unknown []string `toml:"-"` // keys in the file the panel does not know, e.g. typos
}
func Load ¶
Load reads the config file, writing the defaults first if none exists. path overrides the default location; that file must already exist.
Click to show internal directories.
Click to hide internal directories.