Documentation
¶
Overview ¶
internal/config/config.go
Index ¶
Constants ¶
View Source
const ( DefaultConfigFileName = ".contextvibes.yaml" DefaultBranchNamePattern = `^((feature|fix|docs|format)/.+)$` DefaultCommitMessagePattern = `^(BREAKING|feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\([a-zA-Z0-9\-_]+\))?:\s.+` DefaultGitRemote = "origin" DefaultGitMainBranch = "main" UltimateDefaultAILogFilename = "contextvibes_ai_trace.log" )
Variables ¶
This section is empty.
Functions ¶
func FindRepoRootConfigPath ¶
func FindRepoRootConfigPath(execClient *exec.ExecutorClient) (string, error)
FindRepoRootConfigPath now takes an ExecutorClient to find the repo root.
Types ¶
type Config ¶
type Config struct {
Git GitSettings `yaml:"git,omitempty"`
Logging LoggingSettings `yaml:"logging,omitempty"`
Validation struct {
BranchName ValidationRule `yaml:"branchName,omitempty"`
CommitMessage ValidationRule `yaml:"commitMessage,omitempty"`
} `yaml:"validation,omitempty"`
}
func GetDefaultConfig ¶
func GetDefaultConfig() *Config
func LoadConfig ¶
func MergeWithDefaults ¶
type GitSettings ¶
type LoggingSettings ¶
type LoggingSettings struct {
DefaultAILogFile string `yaml:"defaultAILogFile,omitempty"`
}
type ValidationRule ¶
Click to show internal directories.
Click to hide internal directories.