config

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App added in v3.2.1

type App struct {
	Editor             EditorConfig   `json:"editor"             yaml:"editor"`
	Theme              string         `json:"theme"              yaml:"theme"`
	ReadOnlyOnConflict bool           `json:"readOnlyOnConflict" yaml:"readOnlyOnConflict"`
	Command            CommandOptions `json:"-"                  yaml:"-"`
	FS                 FSConfig       `json:"-"                  yaml:"-"`
	Colors             ui.ColorScheme `json:"-"                  yaml:"-"` // ???
	// contains filtered or unexported fields
}

func New

func New(logger *zerolog.Logger) (*App, error)

type CommandOptions

type CommandOptions struct {
	Version VersionConfig `yaml:"version"`
	Ls      LsConfig      `yaml:"ls"`
}

type EditorConfig

type EditorConfig struct {
	Name      string   `json:"name"      yaml:"name"`
	ExtraArgs []string `json:"extraArgs" yaml:"extraArgs"`
}

type FSConfig

type FSConfig struct {
	// contains filtered or unexported fields
}

func (FSConfig) GetCacheDir added in v3.2.1

func (c FSConfig) GetCacheDir() string

func (FSConfig) GetConfigDir added in v3.2.1

func (c FSConfig) GetConfigDir() string

func (FSConfig) GetConfigFile added in v3.2.1

func (c FSConfig) GetConfigFile() string

func (FSConfig) GetDataDir added in v3.2.1

func (c FSConfig) GetDataDir() string

func (FSConfig) GetDataFile added in v3.2.1

func (c FSConfig) GetDataFile() string

type LsConfig

type LsConfig struct {
	KeySize int  `yaml:"keyLength,omitempty"`
	NoColor bool `yaml:"noColor,omitempty"`
	Columns []string
}

type VersionConfig

type VersionConfig struct {
	NoColor bool   `yaml:"noColor,omitempty"`
	Color   string `yaml:"color,omitempty"`
}

Jump to

Keyboard shortcuts

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