Documentation
¶
Overview ¶
Package config resolves wt's configuration by layering defaults, the global config, the per-repo config, and one-off env var overrides.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
WorktreeDir string `toml:"worktree_dir"`
BranchPattern string `toml:"branch_pattern"`
Editor string `toml:"editor"`
EnvFiles []string `toml:"env_files"`
InstallCommand string `toml:"install_command"`
// NoInstall / NoCode come only from env vars (WT_NO_INSTALL /
// WT_NO_CODE), never from a TOML file — they're one-shot run
// overrides, not persistent settings.
NoInstall bool
NoCode bool
}
Config holds wt's fully resolved settings.
WorktreeDir and BranchPattern are templates: "{repo}" and "{name}" are substituted by the caller once the repo name / worktree name are known.
Click to show internal directories.
Click to hide internal directories.