Documentation
¶
Index ¶
- func AvailableVersion(repo string, filePrefix string, channel string) (semver.Version, error)
- func CheckAndNotifyIfOutOfDate(tool string, currentVersion string, repo string, filePrefix string, ...) (bool, error)
- func CurrentVersion(version string) (semver.Version, error)
- func Download(repo string, version string, tool string) (string, error)
- func GetHome() string
- func RemoveBackup() (string, string, error)
- func Upgrade(tool string, currentVersion string, repo string, filePrefix string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableVersion ¶
func CheckAndNotifyIfOutOfDate ¶
func CheckAndNotifyIfOutOfDate(tool string, currentVersion string, repo string, filePrefix string, versionStable string, hoursToCheckForUpdate float64, upgradeCommand string) (bool, error)
CheckAndNotifyIfOutOfDate checks if this utility is out of date compared to the repository. It uses a caching strategy to avoid costly checks with every run.
func RemoveBackup ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.