Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 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"`
	// Sources selects which backends to enable: "github", "local". Empty means
	// auto-detect both (GitHub when gh is authenticated, local when the current
	// repository has git-native issues).
	Sources []string `yaml:"sources"`
}

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"`
	Create        string `yaml:"create"`
	Comment       string `yaml:"comment"`
	ToggleState   string `yaml:"toggleState"`
	Move          string `yaml:"move"`
	Labels        string `yaml:"labels"`
	Assign        string `yaml:"assign"`
	Undo          string `yaml:"undo"`
}

Jump to

Keyboard shortcuts

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