config

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptAndSaveProvider added in v0.2.2

func PromptAndSaveProvider() error

PromptAndSaveProvider prompts the user to select a provider and saves it to global config

Types

type Config

type Config struct {
	Watch  []string   `yaml:"watch"`
	Ignore []string   `yaml:"ignore"`
	Logs   LogsConfig `yaml:"logs"`
	LLM    LLMConfig  `yaml:"llm"`
}

Config holds the complete application configuration

func Load

func Load() (*Config, error)

Load loads configuration with fallback: local -> global -> defaults

func (*Config) GetDebounceDuration

func (c *Config) GetDebounceDuration() time.Duration

GetDebounceDuration returns debounce duration for file changes

func (*Config) SaveGlobal added in v0.2.2

func (c *Config) SaveGlobal() error

SaveGlobal saves the config to the global config file

type LLMConfig

type LLMConfig struct {
	Provider     string `yaml:"provider"`
	Model        string `yaml:"model"`
	APIKey       string `yaml:"api_key"`
	SystemPrompt string `yaml:"system_prompt"`
}

LLMConfig holds LLM provider configuration

type LogsConfig

type LogsConfig struct {
	File  string `yaml:"file"`
	Lines int    `yaml:"lines"`
}

LogsConfig holds log scraping configuration

Jump to

Keyboard shortcuts

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