Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" // Version is set at build time via ldflags Commit = "" // Commit is set at build time via ldflags )
Functions ¶
func Display ¶
func Display() string
Display returns the full version info including Go version and OS/Arch.
Types ¶
type UpdateInfo ¶
type UpdateInfo struct {
CurrentVersion string `json:"current_version,omitempty"`
LatestVersion string `json:"latest_version,omitempty"`
DownloadURL string `json:"download_url,omitempty"`
Available bool `json:"available"`
}
func CheckForUpdate ¶
func CheckForUpdate(ctx context.Context) (*UpdateInfo, error)
CheckForUpdate returns the latest published CLI release when it is newer than the current binary version. The release metadata is cached in the global Semantica config directory to keep local commands fast and usable while offline.
Click to show internal directories.
Click to hide internal directories.