Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Cmd = &cobra.Command{ Use: "update", Args: cobra.NoArgs, Short: "Check for and apply updates to piri", Long: `Check for new releases and update the piri binary to the latest version.`, RunE: doUpdate, } )
View Source
var SupportedLinuxArch = map[string]bool{ "amd64": true, "arm64": true, }
Functions ¶
This section is empty.
Types ¶
type GitHubRelease ¶
type GitHubRelease struct {
TagName string `json:"tag_name"`
Name string `json:"name"`
Draft bool `json:"draft"`
Prerelease bool `json:"prerelease"`
CreatedAt time.Time `json:"created_at"`
Assets []struct {
Name string `json:"name"`
BrowserDownloadURL string `json:"browser_download_url"`
} `json:"assets"`
}
GitHubRelease represents a GitHub release
Click to show internal directories.
Click to hide internal directories.