config

package
v0.0.0-...-ef490db Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDefaultScheme

func RegisterDefaultScheme(theme string, scheme map[string]Color)

Types

type Color

type Color struct {
	Fg string `yaml:"fg"`
	Bg string `yaml:"bg"`
}

type ColorTheme

type ColorTheme struct {
	Tmux         string `yaml:"tmux"`
	Prompt       string `yaml:"prompt"`
	PromptInTmux string `yaml:"prompt_in_tmux"`
}

type Config

type Config struct {
	HostName      string                      `yaml:"hostname"`
	VCS           map[string]interface{}      `yaml:"vcs"`
	PathShorterns map[string]string           `yaml:"path_shortern"`
	Theme         ColorTheme                  `yaml:"theme"`
	Scheme        map[string]map[string]Color `yaml:"scheme"`
}

func ReadConfig

func ReadConfig() *Config

func (*Config) GetColor

func (c *Config) GetColor(theme, key string) Color

Jump to

Keyboard shortcuts

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