version

package
v0.7.0-alpha.7 Latest Latest
Warning

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

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

Documentation

Overview

Package version provides the command to display build and version information.

It supports outputting details in human-readable, JSON, or YAML formats, making it suitable for both interactive use and integration into CI/CD pipelines.

Index

Constants

This section is empty.

Variables

This section is empty.

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 serializable build information.

Jump to

Keyboard shortcuts

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