Documentation
¶
Index ¶
- func IsNotExist(err error) bool
- func OSConfigPath(homeDir, goos string, lookupEnv func(string) (string, bool)) string
- func ResolveConfigPath() (string, error)
- func ResolveWritablePath() (string, error)
- func Save(path string, file *File) error
- type APICacheSection
- type CLIOverrides
- type File
- type GhproxySection
- type Merged
- type Section
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotExist ¶
func OSConfigPath ¶
func ResolveConfigPath ¶
func ResolveWritablePath ¶
Types ¶
type APICacheSection ¶ added in v1.5.1
type CLIOverrides ¶
type File ¶
type File struct {
Meta struct {
Keys []string
MetaData *toml.MetaData
}
Global Section `toml:"global"`
ApiCache APICacheSection `toml:"api_cache"`
Ghproxy GhproxySection `toml:"ghproxy"`
Repos map[string]Section
Packages map[string]Section `toml:"packages"`
}
func LoadFromEnvOrDefault ¶
type GhproxySection ¶ added in v1.5.1
type Merged ¶
type Merged struct {
All bool
AssetFilters []string
CacheDir string
ProxyURL string
DownloadOnly bool
File string
GithubToken string
Name string
Quiet bool
ShowHash bool
Source bool
System string
Tag string
Target string
UpgradeOnly bool
Verify string
DisableSSL bool
}
func MergeInstallOptions ¶
func MergeInstallOptions(global, repo, pkg Section, cli CLIOverrides) Merged
type Section ¶
type Section struct {
All *bool `toml:"all"`
AssetFilters []string `toml:"asset_filters"`
CacheDir *string `toml:"cache_dir"`
ProxyURL *string `toml:"proxy_url"`
DownloadOnly *bool `toml:"download_only"`
File *string `toml:"file"`
GithubToken *string `toml:"github_token"`
Name *string `toml:"name"`
Quiet *bool `toml:"quiet"`
Repo *string `toml:"repo"`
ShowHash *bool `toml:"show_hash"`
Source *bool `toml:"download_source"`
System *string `toml:"system"`
Tag *string `toml:"tag"`
Target *string `toml:"target"`
UpgradeOnly *bool `toml:"upgrade_only"`
Verify *string `toml:"verify_sha256"`
DisableSSL *bool `toml:"disable_ssl"`
}
Click to show internal directories.
Click to hide internal directories.