Documentation
¶
Index ¶
- Variables
- func DeleteAlias(name string) error
- func GetAlias(name string) (string, error)
- func GetConfigPath() (string, error)
- func ImportAliases(filepath string) error
- func LoadAliases() (map[string]string, error)
- func SaveAliases(aliases map[string]string) error
- func SetAlias(name, command string) error
- type AliasConfig
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigPathFunc = getDefaultConfigPath
ConfigPathFunc is a function variable that returns the config file path This can be overridden in tests
Functions ¶
func GetConfigPath ¶
GetConfigPath returns the path to the config file
func ImportAliases ¶
ImportAliases imports aliases from a YAML file
func LoadAliases ¶
LoadAliases loads aliases from the config file
func SaveAliases ¶
SaveAliases saves aliases to the config file
Types ¶
type AliasConfig ¶
AliasConfig represents the alias configuration structure
Click to show internal directories.
Click to hide internal directories.