Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultWorktreeBase = "~/github/worktree" ConfigName = "config" ConfigType = "yaml" )
Default values.
Variables ¶
This section is empty.
Functions ¶
func ConfigFileUsed ¶
func ConfigFileUsed() string
ConfigFileUsed returns the path of the loaded config file (or "" if none).
func Load ¶
Load initializes Viper and reads the configuration. It returns the loaded Viper instance and handles file-not-found gracefully. If no config file exists, it creates one with default values.
Types ¶
type Action ¶
type Action struct {
Name string `mapstructure:"name"`
Cmds []string `mapstructure:"cmds"`
Dir string `mapstructure:"dir"`
}
Action defines a named set of commands to run.
Click to show internal directories.
Click to hide internal directories.