config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig()

func SetDefaults

func SetDefaults()

Types

type AuthenticationConfig

type AuthenticationConfig struct {
	Server string `mapstructure:"server"`
	Token  string `mapstructure:"api_token"`
}

type ColorVariant

type ColorVariant struct {
	Foreground string `mapstructure:"foreground"`
	Background string `mapstructure:"background"`
}

type ColorsConfig

type ColorsConfig struct {
	Items     ItemColors      `mapstructure:"items"`
	Pane      PaneColors      `mapstructure:"pane"`
	Spinner   string          `mapstructure:"spinner"`
	StatusBar StatusBarColors `mapstructure:"status_bar"`
}

type Config

type Config struct {
	Settings       SettingsConfig       `mapstructure:"settings"`
	RedmineConfig  RedmineConfig        `mapstructure:"redmine"`
	Keybindings    KeybindingConfig     `mapstructure:"bindings"`
	Authentication AuthenticationConfig `mapstructure:"authentication"`
	Colors         ColorsConfig         `mapstructure:"colors"`
}

func GetConfig

func GetConfig() (config Config)

type FormatConfig

type FormatConfig struct {
	DateTime string `mapstructure:"datetime"`
	Date     string `mapstructure:"date"`
}

type ItemColors

type ItemColors struct {
	SelectedItem   string `mapstructure:"selected_item"`
	UnselectedItem string `mapstructure:"unselected_item"`
}

type KeybindingConfig

type KeybindingConfig struct {
	Down           string `mapstructure:"down"`
	Escape         string `mapstructure:"escape"`
	Exit           string `mapstructure:"exit"`
	GoToBottom     string `mapstructure:"go_to_bottom"`
	Help           string `mapstructure:"help"`
	Left           string `mapstructure:"left"`
	OpenCommandBar string `mapstructure:"open_command"`
	Quit           string `mapstructure:"quit"`
	Right          string `mapstructure:"right"`
	Select         string `mapstructure:"select"`
	Up             string `mapstructure:"up"`
	New            string `mapstructure:"new"`
	Delete         string `mapstructure:"delete"`
	Update         string `mapstructure:"update"`
	NextInput      string `mapstructure:"next_input"`
	PreviousInput  string `mapstructure:"previous_input"`
	Filter         string `mapstructure:"filter"`
	OpenInBrowser  string `mapstructure:"open_browser"`
}

type PaneColors

type PaneColors struct {
	ActiveBorderColor   string `mapstructure:"active_border_color"`
	InactiveBorderColor string `mapstructure:"inactive_border_color"`
}

type RedmineConfig

type RedmineConfig struct {
	EnabledPanes []string `mapstructure:"enabled_panes"`
	Limit        int      `mapstructure:"limit"`
	Offset       int      `mapstructure:"offset"`
}

type SettingsConfig

type SettingsConfig struct {
	RoundedPanes   bool `mapstructure:"rounded_panes"`
	EnableLogging  bool `mapstructure:"enable_logging"`
	PrettyMarkdown bool `mapstructure:"pretty_markdown"`
}

type StatusBarColors

type StatusBarColors struct {
	Bar          ColorVariant `mapstructure:"bar"`
	SelectedPane ColorVariant `mapstructure:"selected_pane"`
}

Jump to

Keyboard shortcuts

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