config

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: GPL-3.0 Imports: 14 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() (string, error)

Types

type Config

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

func LoadConfig

func LoadConfig() (Config, error)

type ConversionConfig added in v2.5.0

type ConversionConfig struct {
	CustomPlaybackOptions []cmd.Command      `toml:"custom_playback_options,omitempty"`
	MultiCommand          []cmd.MultiCommand `toml:"multi_commands,omitempty"`
}

type Theme

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

Jump to

Keyboard shortcuts

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