version

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package version provides the ytr version command.

Index

Constants

This section is empty.

Variables

View Source
var VersionFields = []string{"version", "commit", "date", "goVersion", "os", "arch"}

VersionFields lists the available JSON field names for version output.

Functions

func NewCmd

func NewCmd() *cobra.Command

NewCmd creates the version command that displays build information. In human mode it prints a multi-line summary; with --json it outputs structured JSON with version, commit, date, goVersion, os, and arch fields.

Types

This section is empty.

Jump to

Keyboard shortcuts

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