pkg

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AliasFilePath

func AliasFilePath() (string, error)

func ConfigDirPath

func ConfigDirPath() (string, error)

func ConfigFilePath

func ConfigFilePath() (string, error)

func FileMissing added in v0.5.0

func FileMissing(fs afero.Fs, path string) bool

func MakeAliasCommands

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

func MakeConfigDir

func MakeConfigDir(fs afero.Fs) error

func ReadFile added in v0.5.0

func ReadFile(afs afero.Fs, path string) ([]byte, error)

func RemoveFile added in v0.8.0

func RemoveFile(afs afero.Fs, path string) error

func SaveExtraDir

func SaveExtraDir(fs afero.Fs, path string) error

func WriteFile added in v0.6.0

func WriteFile(afs afero.Fs, fileName string, data []byte, perm fs.FileMode) error

Types

type Config

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

func FromJson

func FromJson(j []byte) (Config, error)

func (Config) AsJson

func (c Config) AsJson() ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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