Documentation
¶
Index ¶
- func DefaultConfigPath() string
- func EffectivePath(explicit string) string
- func EnvMap() map[string]string
- func RemoveUserConfig(path string) (string, error)
- func SetUserValue(path string, key string, value string) (string, error)
- func SetUserValues(path string, values map[string]string) (string, error)
- func Validate(cfg AppConfig, requireVLM bool) error
- type AppConfig
- type FlagConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigPath ¶
func DefaultConfigPath() string
func EffectivePath ¶
EffectivePath returns the configuration file that Load will use first. It also returns the default user path before the file exists, so callers can show users exactly where a future config update will be written.
func RemoveUserConfig ¶
func SetUserValues ¶
SetUserValues validates and writes a group of user values as one file update. The caller owns semantic validation; this function preserves unrelated lines and replaces each selected key in one complete file write.
Types ¶
type AppConfig ¶
type AppConfig struct {
Language string
Provider string
BaseURL string
Model string
APIKey string
APIKeySource string
APIKeyEnv string
CredentialStore string
CredentialAccount string
CredentialsPath string
RemoteConfirmed bool
PPTRenderer string
FileWorkers int
Workers int
DPI int
ImageDetail string
MaxImageMB int
MaxTokens int
ContextFallbacks int
MinImageDimension int
TimeoutSeconds int
RetryCount int
PromptName string
JSONOutput bool
NoColor bool
Quiet bool
Verbose bool
}
func MergeFlags ¶
func MergeFlags(base AppConfig, flags FlagConfig) (AppConfig, error)
type FlagConfig ¶
type FlagConfig struct {
Language string
ConfigPath string
Provider string
BaseURL string
Model string
APIKeyEnv string
CredentialStore string
CredentialAccount string
CredentialsPath string
RemoteConfirmed *bool
PPTRenderer string
FileWorkers int
Workers int
DPI int
ImageDetail string
MaxImageMB int
MaxTokens int
ContextFallbacks *int
MinImageDimension int
TimeoutSeconds int
RetryCount int
PromptName string
OutputDir string
JSONOutput bool
NoColor bool
Quiet bool
Verbose bool
}
Click to show internal directories.
Click to hide internal directories.