Documentation
¶
Overview ¶
Copyright © 2025 dinoDanic dino.danic@gmail.com
Index ¶
- func CreateLocalProjectConfigIfNeeded() error
- func CreateVersionedProjectConfigIfNeeded() error
- func GetConfigPath() string
- func GetLocalProjectConfigPath() string
- func GetVersionedProjectConfigPath() string
- type AIConfig
- type AIMode
- type CommitConfig
- type Config
- type Length
- type LoadResult
- type LocalAIConfig
- type LocalCommitConfig
- type LocalConfig
- type Tone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLocalProjectConfigIfNeeded ¶
func CreateLocalProjectConfigIfNeeded() error
func CreateVersionedProjectConfigIfNeeded ¶
func CreateVersionedProjectConfigIfNeeded() error
func GetConfigPath ¶
func GetConfigPath() string
func GetLocalProjectConfigPath ¶
func GetLocalProjectConfigPath() string
func GetVersionedProjectConfigPath ¶
func GetVersionedProjectConfigPath() string
Types ¶
type CommitConfig ¶
type CommitConfig struct {
Conventional bool `yaml:"conventional" json:"Conventional"`
ConventionalFormat []string `yaml:"conventional_format" json:"ConventionalFormat"`
Emoji bool `yaml:"emoji" json:"Emoji"`
EmojiMap map[string]string `yaml:"emoji_map" json:"EmojiMap"`
Tone Tone `yaml:"tone" json:"Tone"`
Length Length `yaml:"length" json:"Length"`
CustomInstructions string `yaml:"custom_instructions" json:"CustomInstructions"`
HashAfterCommit bool `yaml:"hash_after_commit" json:"HashAfterCommit"`
}
type Config ¶
type Config struct {
Theme string `yaml:"theme" json:"Theme"`
CustomThemes map[string]string `yaml:"custom_themes,omitempty" json:"CustomThemes,omitempty"`
AI AIConfig `yaml:"ai" json:"AI"`
Commit CommitConfig `yaml:"commit" json:"Commit"`
}
func LoadWithProjectOverride ¶
func (*Config) EffectiveAIMode ¶
EffectiveAIMode returns the AI mode, defaulting to AIRemote if empty.
type LoadResult ¶
func LoadOrRecover ¶
func LoadOrRecover(cfgFile string) (*LoadResult, error)
func LoadOrRecoverWithProject ¶
func LoadOrRecoverWithProject(cfgFile string) (*LoadResult, error)
type LocalAIConfig ¶
type LocalCommitConfig ¶
type LocalCommitConfig struct {
Conventional *bool `yaml:"conventional,omitempty"`
ConventionalFormat []string `yaml:"conventional_format,omitempty"`
Emoji *bool `yaml:"emoji,omitempty"`
EmojiMap map[string]string `yaml:"emoji_map,omitempty"`
Tone Tone `yaml:"tone,omitempty"`
Length Length `yaml:"length,omitempty"`
CustomInstructions string `yaml:"custom_instructions,omitempty"`
HashAfterCommit *bool `yaml:"hash_after_commit,omitempty"`
}
type LocalConfig ¶
type LocalConfig struct {
Theme string `yaml:"theme,omitempty"`
CustomThemes map[string]string `yaml:"custom_themes,omitempty"`
AI LocalAIConfig `yaml:"ai,omitempty"`
Commit LocalCommitConfig `yaml:"commit,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.