Documentation
¶
Index ¶
- func GetRepoConfigPath() string
- func SaveConfig(config *Config) error
- func SaveLocalConfig(config *Config) error
- func SupportedTicketServices() []string
- func SupportedVCSProviders() []string
- type AI
- type AIConfig
- type AIProviderConfig
- type Config
- type GitConfig
- type Model
- type TicketProviderConfig
- type VCSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRepoConfigPath ¶ added in v1.6.0
func GetRepoConfigPath() string
GetRepoConfigPath returns the path to the repository-local config file Returns empty string if not in a git repository
func SaveConfig ¶
func SaveLocalConfig ¶ added in v1.6.0
SaveLocalConfig saves config to repository-local location
func SupportedTicketServices ¶
func SupportedTicketServices() []string
func SupportedVCSProviders ¶
func SupportedVCSProviders() []string
Types ¶
type AIProviderConfig ¶
type Config ¶
type Config struct {
Language string `json:"language"`
UseEmoji bool `json:"use_emoji"`
SuggestionsCount int `json:"suggestions_count"`
PathFile string `json:"path_file"`
AIProviders map[string]AIProviderConfig `json:"ai_providers,omitempty"`
AIConfig AIConfig `json:"ai_config"`
TicketProviders map[string]TicketProviderConfig `json:"ticket_providers,omitempty"`
ActiveTicketService string `json:"active_ticket_service,omitempty"`
UseTicket bool `json:"use_ticket,omitempty"`
VCSConfigs map[string]VCSConfig `json:"vcs_configs"`
ActiveVCSProvider string `json:"active_vcs_provider,omitempty"`
UpdateChangelog bool `json:"update_changelog"`
VersionFile string `json:"version_file,omitempty"`
VersionPattern string `json:"version_pattern,omitempty"`
AutoFetchTags bool `json:"auto_fetch_tags"`
GitFallback GitConfig `json:"git_fallback,omitempty"`
}
func CreateDefaultConfig ¶ added in v1.6.0
func LoadConfig ¶
func LoadConfigWithHierarchy ¶ added in v1.6.0
LoadConfigWithHierarchy loads config with repository-local override support Priority: local (.matecommit/config.json) > global (~/.config/matecommit/config.json)
func MergeConfigs ¶ added in v1.6.0
MergeConfigs merges local config over global config Non-zero/non-empty values in local override global
type Model ¶
type Model string
const ( ModelGeminiV15Pro Model = "gemini-1.5-pro" ModelGeminiV15Flash Model = "gemini-1.5-flash" ModelGeminiV25Flash Model = "gemini-2.5-flash" ModelGeminiV3Pro Model = "gemini-3-pro-preview" ModelGeminiV3Flash Model = "gemini-3-flash-preview" // TODO: Add more models for OpenAI or others... ModelGPTV4o Model = "gpt-4o" )
func DefaultModelForAI ¶
func ModelsForAI ¶
type TicketProviderConfig ¶
Click to show internal directories.
Click to hide internal directories.