config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPath

func ConfigPath() (string, error)

func RepoConfigPath

func RepoConfigPath(repoRoot string) string

func SaveIfMissing

func SaveIfMissing(cfg Config) (string, bool, error)

Types

type Config

type Config struct {
	DefaultLogLevel  string        `json:"default_log_level"`
	DefaultExcludes  []string      `json:"default_excludes"`
	DefaultLanguages []string      `json:"default_languages"`
	WatchDebounce    time.Duration `json:"watch_debounce"`
	DBDir            string        `json:"db_dir"`
	CacheDir         string        `json:"cache_dir"`
}

func Default

func Default() (Config, error)

func Load

func Load() (Config, error)

type RepoConfig

type RepoConfig struct {
	Include          []string      `json:"include"`
	Exclude          []string      `json:"exclude"`
	Languages        []string      `json:"languages"`
	WatchDebounce    time.Duration `json:"watch_debounce"`
	SemanticMaxTerms int           `json:"semantic_max_terms"`
}

func LoadRepo

func LoadRepo(repoRoot string) (RepoConfig, error)

Jump to

Keyboard shortcuts

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