version

package
v0.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 7 Imported by: 0

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.29.0"

Version はXELYON CLIのバージョン(GoReleaserでビルド時に上書きされる)

Functions

func FormatUpdateNotification added in v0.29.0

func FormatUpdateNotification(result *VersionCheckResult) string

FormatUpdateNotification formats the update notification message

func GetFullVersion

func GetFullVersion() string

GetFullVersion は詳細バージョン情報を返す

func GetVersion

func GetVersion() string

GetVersion はバージョン文字列を返す

Types

type GitHubRelease added in v0.29.0

type GitHubRelease struct {
	TagName string `json:"tag_name"`
	HTMLURL string `json:"html_url"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL