config

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: BSD-3-Clause, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RepositoryStyleOwnerName = "owner_name"
	RepositoryStyleName      = "name"
)

Variables

This section is empty.

Functions

func DefaultCachePath

func DefaultCachePath(homeDirectory string, xdgDataHome string) string

func DefaultKeymapBindings added in v0.7.3

func DefaultKeymapBindings(scope string, action string) ([]string, bool)

func DefaultPath

func DefaultPath(homeDirectory string, xdgConfigHome string) string

func FormatGHCommand

func FormatGHCommand(arguments []string) string

func ParseCommandLine added in v0.4.0

func ParseCommandLine(command string) []string

func SaveThemePreset

func SaveThemePreset(configPath string, preset string) error

func SaveThemePresetDefault

func SaveThemePresetDefault(preset string) error

Types

type CacheConfig

type CacheConfig struct {
	Path string
}

func ResolveCacheConfig

func ResolveCacheConfig(config CacheConfig) (CacheConfig, error)

type Config

type Config struct {
	Keymaps      KeymapOverrides
	PullRequests []PullRequestSearch
	ThemePreset  string
	Theme        theme.Palette
	Display      DisplayConfig
	Links        LinksConfig
	StoryReview  story.Config
	Cache        CacheConfig
}

func Load

func Load(configPath string) (Config, error)

func LoadDefault

func LoadDefault() (Config, error)

func (Config) ResolvedCache

func (config Config) ResolvedCache() (CacheConfig, error)

func (Config) ResolvedDisplay added in v0.7.0

func (config Config) ResolvedDisplay() DisplayConfig
func (config Config) ResolvedLinks() LinksConfig

func (Config) ResolvedPullRequestSearches

func (config Config) ResolvedPullRequestSearches() []PullRequestSearch

func (Config) ResolvedStoryReview

func (config Config) ResolvedStoryReview() story.Config

func (Config) ResolvedTheme

func (config Config) ResolvedTheme() theme.Palette

type DisplayConfig added in v0.7.0

type DisplayConfig struct {
	RepositoryStyle string
}

func ResolveDisplayConfig added in v0.7.0

func ResolveDisplayConfig(config DisplayConfig) DisplayConfig

type KeymapOverrides

type KeymapOverrides map[string]map[string][]string

func DefaultKeymaps

func DefaultKeymaps() KeymapOverrides

type LinksConfig

type LinksConfig struct {
	OpenCommand []string
}

func ResolveLinksConfig

func ResolveLinksConfig(config LinksConfig) LinksConfig

type PullRequestSearch

type PullRequestSearch struct {
	Label   string
	Command []string
}

func DefaultPullRequestSearches

func DefaultPullRequestSearches() []PullRequestSearch

func ResolvePullRequestSearches

func ResolvePullRequestSearches(searches []PullRequestSearch) []PullRequestSearch

Jump to

Keyboard shortcuts

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