Documentation ¶
Index ¶
- func CopyFile(src, dst string) error
- func DownloadBinary(url, filename string) error
- func FindBinaryForCurrentPlatform(release *GitHubRelease) (string, error)
- func PromptYesNo(prompt string) (bool, error)
- func Update(skipPrompt bool, interactive bool) (bool, error)
- type GitHubRelease
- type ProgressReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadBinary ¶
func FindBinaryForCurrentPlatform ¶
func FindBinaryForCurrentPlatform(release *GitHubRelease) (string, error)
func PromptYesNo ¶
Types ¶
type GitHubRelease ¶
type GitHubRelease struct { TagName string `json:"tag_name"` Assets []struct { BrowserDownloadURL string `json:"browser_download_url"` Name string `json:"name"` } `json:"assets"` }
func GetLatestRelease ¶
func GetLatestRelease() (*GitHubRelease, error)
func GetReleases ¶
func GetReleases() ([]GitHubRelease, error)
func SelectReleaseInteractively ¶
func SelectReleaseInteractively(releases []GitHubRelease) (*GitHubRelease, error)
func (*GitHubRelease) IsNewer ¶
func (r *GitHubRelease) IsNewer() (bool, error)
Click to show internal directories.
Click to hide internal directories.