version

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 9 Imported by: 0

README

Version Command

Displays version information and checks for available updates.

For detailed information on version output and update notifications, see the Built-in Commands Documentation.

Documentation

Overview

Package version provides the Cobra command for displaying the CLI's current version, build date, and commit information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdVersion

func NewCmdVersion(props *p.Props) *setup.Command

NewCmdVersion creates the version command that displays build information.

Types

type VersionInfo

type VersionInfo struct {
	Version string `json:"version"`
	Commit  string `json:"commit,omitempty"`
	Date    string `json:"date,omitempty"`
	Latest  string `json:"latest,omitempty"`
	Current bool   `json:"current"`
	// CheckFailed marks a degraded response: the latest-version check was
	// attempted but the release source could not be reached, so Latest is
	// absent and Current is false because the answer is unknown — scripts
	// must not read this as "up to date" or "behind".
	CheckFailed bool `json:"check_failed,omitempty"`
}

VersionInfo holds version details for structured output.

Jump to

Keyboard shortcuts

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