config

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AppName       = "lazyprisma"
	ConfigDirName = "lazyprisma"
	ConfigFile    = "config.yaml"
)

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() (string, error)

ConfigDir returns the config directory path

func ConfigPath

func ConfigPath() (string, error)

ConfigPath returns the full path to the config file

func EnsureConfigFile

func EnsureConfigFile() error

EnsureConfigFile creates the config file with defaults if it doesn't exist

func Save

func Save(cfg *Config) error

Save saves configuration to ~/.config/lazyprisma/config.yaml

Types

type Config

type Config struct {
	Scan ScanConfig `yaml:"scan"`
}

Config holds application configuration

func Default

func Default() *Config

Default returns the default configuration

func Load

func Load() (*Config, error)

Load loads configuration from ~/.config/lazyprisma/config.yaml Returns default config if file doesn't exist

type ScanConfig

type ScanConfig struct {
	MaxDepth    int      `yaml:"maxDepth"`
	ExcludeDirs []string `yaml:"excludeDirs"`
}

ScanConfig holds project scanning settings

Jump to

Keyboard shortcuts

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