Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alias ¶
type Alias struct {
Name string `yaml:"name" toml:"name"`
Version string `yaml:"version" toml:"version"`
Flags map[string]bool `yaml:"flags" toml:"flags"`
}
func (*Alias) UnmarshalText ¶
func (*Alias) UnmarshalYAML ¶
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 *Aliases `yaml:"aliases" toml:"aliases"`
// Language - the language to use for the output of the application
Language string `yaml:"language" toml:"language"`
// Providers - allow for custom providers that uses one of the build in providers as a base. A good example of this
// is gitlab.alpinelinux.org, since gitlab is open source, you can use the gitlab provider as a base
Providers map[string]*Provider `yaml:"providers" toml:"providers"`
}
Config - the configuration for distillery
func (*Config) GetCachePath ¶
GetCachePath - get the cache path
func (*Config) GetDownloadsPath ¶
GetDownloadsPath - get the downloads path
func (*Config) GetMetadataPath ¶
GetMetadataPath - get the metadata path
Click to show internal directories.
Click to hide internal directories.