config

package
v0.0.0-...-ded38ef Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const PROJECT_SUB_DIR = "spt-terminal/"

Variables

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	UserCacheDir   string
	UserConfigPath string
	OnConfigChange func()
	// contains filtered or unexported fields
}

func NewAppConfig

func NewAppConfig() *AppConfig

func (*AppConfig) ReadConfig

func (app *AppConfig) ReadConfig()

type Config

type Config struct {
	CacheDir           string           `yaml:"cache_dir" mapstructure:"cache_dir"`
	RedrawInterval     int              `yaml:"redraw_interval" mapstructure:"redraw_interval"`
	Colors             *entities.Colors `mapstructure:"colors"`
	AdditionalPaddingX int              `yaml:"additional_padding_x" mapstructure:"additional_padding_x"`
	AdditionalPaddingY int              `yaml:"additional_padding_y" mapstructure:"additional_padding_y"`
	ImageWidthExtraX   int              `yaml:"image_width_extra_x" mapstructure:"image_width_extra_x"`
	ImageWidthExtraY   int              `yaml:"image_width_extra_y" mapstructure:"image_width_extra_y"`
	HideImage          bool             `yaml:"hide_image" mapstructure:"hide_image"`
	RoundedCorners     bool             `yaml:"rounded_corners" mapstructure:"rounded_corners"`
}

func NewConfig

func NewConfig() *Config

Jump to

Keyboard shortcuts

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