config

package
v0.1.43 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(startDir *pflag.Flag)

LoadConfig loads a users config and creates the config if it does not exist located at `~/.tran/tran.yml`

Types

type Config

type Config struct {
	Tran TranConfig `mapstructure:"config"`
}

Config represents the main config for the application.

func GetConfig

func GetConfig() (config Config)

GetConfig returns the users config.

type TranConfig

type TranConfig struct {
	StartDir         string `mapstructure:"start_dir"`
	Borderless       bool   `mapstructure:"borderless"`
	Editor           string `mapstructure:"editor"`
	EnableMouseWheel bool   `mapstructure:"enable_mousewheel"`
	ShowUpdates      bool   `mapstructure:"show_updates"`
}

TranConfig struct represents the config for the config.

Jump to

Keyboard shortcuts

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