pkg

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AliasFileMissing

func AliasFileMissing() bool

func AliasFilePath

func AliasFilePath() string

func ConfigDirMissing

func ConfigDirMissing() bool

func ConfigDirPath

func ConfigDirPath() string

func ConfigFileMissing

func ConfigFileMissing() bool

func ConfigFilePath

func ConfigFilePath() string

func MakeAliasCommands

func MakeAliasCommands(name string, path string, config Config) string

func MakeConfigDir

func MakeConfigDir()

func ReadAliasFile

func ReadAliasFile() []byte

func SaveExtraDir

func SaveExtraDir(path string)

func WriteConfigFile

func WriteConfigFile(b []byte)

Types

type Config

type Config struct {
	Path      string
	EditorCmd string
	Extras    []string
}

func FromJson

func FromJson(j []byte) Config

func ReadConfigFile

func ReadConfigFile() Config

func (Config) AsJson

func (c Config) AsJson() []byte

func (Config) Save

func (c Config) Save()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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