config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 3 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 {
	Defaults    Defaults    `yaml:"defaults"`
	Keybindings Keybindings `yaml:"keybindings"`
}

func Load

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

Load reads config from the first location that exists, in priority order: 1. --config flag path 2. $LAZYDASH_CONFIG env var 3. .lazydash.yml in current dir 4. $XDG_CONFIG_HOME/lazydash/config.yml

type Defaults

type Defaults struct {
	Orgs                   []string `yaml:"orgs"`
	RefreshIntervalMinutes int      `yaml:"refreshIntervalMinutes"`
	IgnoreProjects         []string `yaml:"ignoreProjects"`
	IgnoreOrgs             []string `yaml:"ignoreOrgs"`
	OnlyOrgs               []string `yaml:"onlyOrgs"`
	OnlyProjects           []string `yaml:"onlyProjects"`
}

type Keybindings

type Keybindings struct {
	OpenInBrowser string `yaml:"openInBrowser"`
	OpenInGhDash  string `yaml:"openInGhDash"`
	Refresh       string `yaml:"refresh"`
	Help          string `yaml:"help"`
	Quit          string `yaml:"quit"`
	PrevView      string `yaml:"prevView"`
	NextView      string `yaml:"nextView"`
}

Jump to

Keyboard shortcuts

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