version

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 10 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) *cobra.Command

NewCmdVersion creates the version command that displays build information.

Types

type VersionInfo added in v1.4.0

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"`
}

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