config

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigExists added in v0.1.1

func ConfigExists(path string) bool

ConfigExists checks if a config file exists at the given path

func CreateConfig added in v0.1.1

func CreateConfig(path string, roots []string, editor string) error

CreateConfig creates a new config file at the given path

func DefaultConfigPath

func DefaultConfigPath() string

DefaultConfigPath returns the default config file path

Types

type Config

type Config struct {
	Roots  []string `yaml:"roots"`
	Ignore []string `yaml:"ignore"`
	Editor string   `yaml:"editor"`
}

Config holds the application configuration

func Load

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

Load reads configuration from a YAML file Returns default config if file doesn't exist

Jump to

Keyboard shortcuts

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