Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlobalPath ¶
GlobalPath returns the user-level config path. XDG_CONFIG_HOME is honored when set (including on macOS); otherwise os.UserConfigDir is used, which gives %AppData% on Windows and ~/Library/Application Support on macOS.
Types ¶
type Agent ¶
type Agent struct {
Command []string `toml:"command"`
Delivery string `toml:"delivery"`
Env []string `toml:"env"`
}
Agent configures how prompts reach the agent process. Empty array/string means "not set" — later files cannot unset earlier values.
type Config ¶
type Config struct {
Spec string `toml:"spec"`
SpecFiles []string `toml:"spec_files"`
Editor []string `toml:"editor"`
Pager []string `toml:"pager"`
AgentTimeout time.Duration `toml:"-"`
Agent Agent `toml:"agent"`
Prompts Prompts `toml:"prompts"`
}
Config is the root configuration schema: spec file, agent settings, and prompt overrides.
func Load ¶
Load merges global (optional) then project (optional) files over Defaults: top-level keys from later files win; [agent]/[prompts] keys merge individually; arrays replace wholesale. Missing files are skipped. An empty array/string means "not set" — later files cannot unset earlier values. Unknown keys are a parse error.