version

package
v0.7.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package version provides the version command.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Commit  = "none"
	Date    = "unknown"
	BuiltBy = "unknown"
)

These variables are set via -ldflags during the build process.

View Source
var VersionCmd = NewVersionCmd()

VersionCmd represents the version command.

Functions

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd creates and configures the `version` command.

Types

type Info

type Info struct {
	Version   string `json:"version"   yaml:"version"`
	Commit    string `json:"commit"    yaml:"commit"`
	Date      string `json:"date"      yaml:"date"`
	GoVersion string `json:"goVersion" yaml:"goVersion"`
	OS        string `json:"os"        yaml:"os"`
	Arch      string `json:"arch"      yaml:"arch"`
	BuiltBy   string `json:"builtBy"   yaml:"builtBy"`
}

Info represents the build information.

Jump to

Keyboard shortcuts

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