Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigPath ¶ added in v0.4.1
func GetConfigPath() string
GetConfigPath returns the path to the config file
func GetMetaPath ¶
func GetMetaPath() string
GetMetaPath returns the path to the global metadata file
Types ¶
type Config ¶
type Config struct {
GlobalExcludes []string `yaml:"global_excludes,omitempty"`
Roots []Root `yaml:"roots"`
Editor string `yaml:"editor"`
Scan *ScanConfig `yaml:"scan,omitempty"`
LLM *LLMConfig `yaml:"llm,omitempty"`
List *ListConfig `yaml:"list,omitempty"`
}
Config represents the rog configuration
type LLMConfig ¶
type LLMConfig struct {
Endpoint string `yaml:"endpoint"`
Model string `yaml:"model"`
APIKey string `yaml:"api_key,omitempty"`
ExtraInstructions string `yaml:"extra_instructions,omitempty"`
}
LLMConfig represents LLM configuration
type ListConfig ¶
type ListConfig struct {
DefaultFields []string `yaml:"default_fields,omitempty"`
}
ListConfig represents list command configuration
type Root ¶
type Root struct {
Name string `yaml:"name"`
Path string `yaml:"path"`
MaxDepth int `yaml:"max_depth"`
Exclude []string `yaml:"exclude,omitempty"`
WSL bool `yaml:"wsl,omitempty"` // True if this root is in WSL
WSLDistro string `yaml:"wsl_distro,omitempty"` // WSL distro name (e.g., "Ubuntu")
}
Root represents a search root configuration
type ScanConfig ¶ added in v0.4.0
type ScanConfig struct {
Progress string `yaml:"progress,omitempty"`
}
ScanConfig represents scan command configuration
Click to show internal directories.
Click to hide internal directories.