config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

internal/config/config.go

internal/config/loader.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigPath

func DefaultConfigPath() string

func ExpandHome

func ExpandHome(path string) string

ExpandHome replaces a leading ~ or ~/ with the user's home directory.

func Save

func Save(cfg *Config, path string) error

Types

type Config

type Config struct {
	// Scanning
	ScanPaths      []string `yaml:"scan_paths"`
	IgnorePatterns []string `yaml:"ignore_patterns"`
	MaxDepth       int      `yaml:"max_depth"`

	// Watcher
	PollInterval time.Duration `yaml:"poll_interval"`
	AutoRefresh  bool          `yaml:"auto_refresh"`
}

func Load

func Load(path string) (*Config, error)

Load reads config from path, returning defaults if file doesn't exist

func NewConfig

func NewConfig() *Config

func (*Config) ShouldIgnore

func (c *Config) ShouldIgnore(path string) bool

Jump to

Keyboard shortcuts

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