Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigFileName = ".wt.toml"
Variables ¶
This section is empty.
Functions ¶
func SampleConfig ¶
func SampleConfig() string
SampleConfig returns a sample configuration file content.
Types ¶
type Config ¶
type Config struct {
BaseBranch string `toml:"base_branch"`
WorktreeDir string `toml:"worktree_dir"`
PreprocessScript string `toml:"preprocess_script"`
CopyPatterns []string `toml:"copy_patterns"`
PostHooks []Hook `toml:"post_hooks"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
func Load ¶
Load finds and parses .wt.toml from the current directory or parent directories. Returns default config if no config file is found.
func LoadFromDir ¶
LoadFromDir loads config from a specific directory.
Click to show internal directories.
Click to hide internal directories.