config

package
v3.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitConfigLLMAPIKey                = "llm-api-key"
	GitConfigLLMAPIHost               = "llm-api-host"
	GitConfigLLMAPIPath               = "llm-api-path"
	GitConfigLLMModel                 = "llm-model"
	GitConfigLLMTemperature           = "llm-temperature"
	GitConfigLLMRequestTimeout        = "llm-request-timeout"
	GitConfigLLMMaxRetries            = "llm-max-retries"
	GitConfigLLMOutputLang            = "llm-output-lang"
	GitConfigLLMDiffContext           = "llm-diff-context"
	GitConfigLLMMaxConcurrency        = "llm-max-concurrency"
	GitConfigLLMFileAnalysisPrompt    = "llm-file-analysis-prompt"
	GitConfigLLMCommitPromptEN        = "llm-commit-prompt-en"
	GitConfigLLMCommitPromptZH        = "llm-commit-prompt-zh"
	GitConfigLLMCommitPromptBilingual = "llm-commit-prompt-bilingual"
	GitConfigLuckyCommitPrefix        = "lucky-commit-prefix"
	GitConfigSSHStrictHostKey         = "ssh-strict-host-key"
	GitConfigBranchAutoDetect         = "branch-auto-detect"
)

GitConfig keys.

View Source
const GitConfigSection = "gitflow"

GitConfigSection name for gitflow-toolkit settings.

Variables

This section is empty.

Functions

func GetBool

func GetBool(gitKey string, defaultVal bool) bool

GetBool returns a bool config value from gitconfig, or default if not set.

func GetDuration

func GetDuration(gitKey string, defaultVal time.Duration) time.Duration

GetDuration returns a time.Duration config value from gitconfig, or default if not set. Supports Go duration format (e.g., "30s", "2m", "1h30m").

func GetFloat

func GetFloat(gitKey string, defaultVal float64) float64

GetFloat returns a float64 config value from gitconfig, or default if not set.

func GetInt

func GetInt(gitKey string, defaultVal int) int

GetInt returns an int config value from gitconfig, or default if not set.

func GetString

func GetString(gitKey, defaultVal string) string

GetString returns a config value from gitconfig, or default if not set.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL