config

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigPath

func GetConfigPath() (string, error)

func GetLogPath

func GetLogPath(cfg Config) (string, error)

Types

type Config

type Config struct {
	LiveRetryTimeout      int                `json:"live_retry_timeout"`
	Lang                  string             `json:"preferred_language"`
	CheckUpdate           bool               `json:"check_updates"`
	SaveLogs              bool               `json:"save_logs"`
	LogLocation           string             `json:"log_location"`
	CustomPlaybackOptions []cmd.Command      `json:"custom_playback_options"`
	MultiCommand          []cmd.MultiCommand `json:"multi_commands"`
	HorizontalLayout      bool               `json:"horizontal_layout"`
	Theme                 Theme              `json:"theme"`
	TreeRatio             int                `json:"tree_ratio"`
	OutputRatio           int                `json:"output_ratio"`
	TerminalWrap          bool               `json:"terminal_wrap"`
	DisableTeamColors     bool               `json:"disable_team_colors"`
}

func LoadConfig

func LoadConfig() (Config, error)

func (Config) Save

func (cfg Config) Save() error

type Theme

type Theme struct {
	BackgroundColor     string `json:"background_color"`
	BorderColor         string `json:"border_color"`
	CategoryNodeColor   string `json:"category_node_color"`
	FolderNodeColor     string `json:"folder_node_color"`
	ItemNodeColor       string `json:"item_node_color"`
	ActionNodeColor     string `json:"action_node_color"`
	LoadingColor        string `json:"loading_color"`
	LiveColor           string `json:"live_color"`
	UpdateColor         string `json:"update_color"`
	NoContentColor      string `json:"no_content_color"`
	InfoColor           string `json:"info_color"`
	ErrorColor          string `json:"error_color"`
	TerminalAccentColor string `json:"terminal_accent_color"`
	TerminalTextColor   string `json:"terminal_text_color"`
	MultiCommandColor   string `json:"multi_command_color"`
}

Jump to

Keyboard shortcuts

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