Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Path - path to store the configuration files, this path is set by default based on the operating system type
// and your user's home directory. Typically, this is set to $HOME/.distillery
Path string `yaml:"path" toml:"path"`
// BinPath - path to create symlinks for your binaries, this path is set by default based on the operating system type
// This is the path that is added to your PATH environment variable. Typically, this is set to $HOME/.distillery/bin
// This allows you to override the location for symlinks. For example, you can instead put them all in /usr/local/bin
BinPath string `yaml:"bin_path" toml:"bin_path"`
// CachePath - path to store cache files, this path is set by default based on the operating system type
CachePath string `yaml:"cache_path" toml:"cache_path"`
// DefaultSource - the default source to use when installing binaries, this defaults to GitHub
DefaultSource string `yaml:"default_source" toml:"default_source"`
// AutomaticAliases - automatically create aliases for any binary that is installed
AutomaticAliases bool `yaml:"automatic_aliases" toml:"automatic_aliases"`
// Aliases - Allow for creating shorthand aliases for source locations that you use frequently. A good example
// of this is `distillery` -> `ekristen/distillery`
Aliases map[string]string `yaml:"aliases" toml:"aliases"`
// Language - the language to use for the output of the application
Language string `yaml:"language" toml:"language"`
}
func (*Config) GetCachePath ¶
func (*Config) GetDownloadsPath ¶
func (*Config) GetMetadataPath ¶
func (*Config) GetOptPath ¶
Click to show internal directories.
Click to hide internal directories.