cmdversion

package
v0.182.6 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cmdversion renders version metadata supplied by the build domain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(snapshot func() buildinfo.Report) *cobra.Command

New creates an independent version command with a lazy snapshot operation.

func Write

func Write(out io.Writer, info buildinfo.Report, asJSON bool) error

Write preserves the successful output contract and returns writer failures.

func WriteBare

func WriteBare(out io.Writer, version string) error

WriteBare emits only the version for root-level pre-Cobra requests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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