config

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Paths           Paths
	RefreshInterval time.Duration
	Columns         []string
}

Config aggregates user-tunable settings plus resolved Paths.

func Load

func Load(cliDataDir, cliProfile string) (*Config, error)

Load resolves the data directory and (optionally) reads a YAML config. cliDataDir wins if non-empty; otherwise PROWL_DATA_DIR, then XDG_DATA_HOME/prowl, then ~/.local/share/prowl. When cliProfile (or PROWL_PROFILE) is non-empty, the resolved data dir gets that profile appended as a subdirectory so users can keep, e.g., work and personal PRs separate.

type Paths

type Paths struct {
	DataDir      string
	ActiveFile   string
	ReviewedFile string
}

Paths holds resolved on-disk locations for prowl's state.

Jump to

Keyboard shortcuts

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