Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commit = "unknown"
Commit はGitコミットハッシュ(GoReleaserでビルド時に設定される)
View Source
var Date = "unknown"
Date はビルド日時(GoReleaserでビルド時に設定される)
View Source
var Version = "0.40.0"
Version はXELYON CLIのバージョン(GoReleaserでビルド時に上書きされる)
Functions ¶
func FormatUpdateNotification ¶ added in v0.29.0
func FormatUpdateNotification(result *VersionCheckResult) string
FormatUpdateNotification formats the update notification message
Types ¶
type GitHubRelease ¶ added in v0.29.0
GitHubRelease represents the GitHub API response for a release
type VersionCheckResult ¶ added in v0.29.0
type VersionCheckResult struct {
HasUpdate bool
LatestVersion string
CurrentVersion string
UpdateCommand string
}
VersionCheckResult contains the result of a version check
func CheckForUpdates ¶ added in v0.29.0
func CheckForUpdates(configDir string) (*VersionCheckResult, error)
CheckForUpdates checks if a new version is available
Click to show internal directories.
Click to hide internal directories.