Documentation ¶
Index ¶
- Constants
- func AliasFilePath() (string, error)
- func AppendToFile(afs afero.Fs, path string, data []byte) error
- func ConfigDirPath() (string, error)
- func ConfigFileMissing(appFs afero.Fs) (bool, error)
- func ConfigFilePath() (string, error)
- func ExpandPath(path string) (string, error)
- func FileMissing(fs afero.Fs, path string) bool
- func MakeConfigDir(fs afero.Fs) error
- func ReadFile(afs afero.Fs, path string) ([]byte, error)
- func RemoveFile(afs afero.Fs, path string) error
- func SaveAliases(appFs afero.Fs, aliases []Alias) error
- func SaveExtraDir(appFs afero.Fs, path string) error
- func WriteFile(afs afero.Fs, fileName string, data []byte, perm fs.FileMode) error
- func WriteFixtureFile(t *testing.T, appFs afero.Fs, path string, data []byte)
- type Alias
- type Config
Constants ¶
View Source
const ( BashShell = "Bash" ZshShell = "Zsh" FishShell = "Fish" SkipEditorMode = "Skip" SameEditorMode = "Same" UniqueEditorMode = "Unique" )
Variables ¶
This section is empty.
Functions ¶
func AliasFilePath ¶
func AppendToFile ¶ added in v0.11.0
func ConfigDirPath ¶
func ConfigFilePath ¶
func ExpandPath ¶ added in v1.1.0
func MakeConfigDir ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.