Documentation
¶
Index ¶
- func DefaultConfigPath() (string, error)
- func SaveConfig(path string, cfg Config, language string) error
- func ShouldUseInteractive(args []string, interactive bool) bool
- func ValidateConfig(cfg Config) error
- type Config
- func DefaultConfig() Config
- func LoadConfig(path, language string) (Config, error)
- func MergeConfig(base, fileCfg, cliCfg Config, changed map[string]bool) Config
- func NormalizeConfigPaths(cfg Config) (Config, error)
- func RunBaseConfigWizard(in io.Reader, out io.Writer, language string) (Config, error)
- func RunWizard(in io.Reader, out io.Writer, base Config) (Config, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigPath ¶
func ShouldUseInteractive ¶
func ValidateConfig ¶
Types ¶
type Config ¶
type Config struct {
Language string `json:"language,omitempty"`
Time timequery.Spec `json:"time,omitempty"`
Format string `json:"format,omitempty"`
OutputFile string `json:"output,omitempty"`
RepoPath string `json:"repo,omitempty"`
ReposPath string `json:"repos,omitempty"`
Provider string `json:"provider,omitempty"`
BaseURL string `json:"base_url,omitempty"`
APIKey string `json:"api_key,omitempty"`
Model string `json:"model,omitempty"`
Author string `json:"author,omitempty"`
Prompt string `json:"prompt,omitempty"`
Interactive bool `json:"interactive,omitempty"`
ConfigPath string `json:"-"`
NoConfig bool `json:"-"`
}
Config is the unified runtime configuration.
func DefaultConfig ¶
func DefaultConfig() Config
func LoadConfig ¶
func NormalizeConfigPaths ¶ added in v0.1.2
func RunBaseConfigWizard ¶ added in v0.1.4
Click to show internal directories.
Click to hide internal directories.