Documentation
¶
Overview ¶
Package scaffold creates a new user's jungi configuration directory structure on first startup, so every later path resolution (settings, logs, skills, hooks, plugins) finds its directory already present.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
// CreatedConfigDir reports whether ~/.config/jungi/ did not already
// exist and was created.
CreatedConfigDir bool
// CreatedSettingsFile reports whether the default settings.toml
// template was written because no settings file existed yet.
CreatedSettingsFile bool
}
Result describes the scaffolding performed by EnsureUserConfig, so callers can report what happened (e.g. a first-run notice on the idle screen).
func EnsureUserConfig ¶
EnsureUserConfig creates the config, logs, skills, hooks, plugins, and cache directories if they do not already exist, and writes the embedded default settings.toml when no settings file is present.
An existing settings.toml is never overwritten or merged into — the user's file is authoritative.
Source Files
¶
- scaffold.go