cli

package
v0.18.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cli is the version subpackage owned by the solo-provisioner CLI binary.

It embeds the CLI's own VERSION and COMMIT files (generated by pkg/version/cli/generate_version_unix.sh during `go generate`) and exposes the canonical version accessors and Cobra "version" command for the CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns a "version" Cobra command bound to the CLI binary's Info.

func Commit

func Commit() string

func Get

func Get() version.Info

Get returns the CLI binary's version Info.

func Number

func Number() string

func Print

func Print(cmd *cobra.Command, format string) error

Print writes the CLI binary's Info to cmd's stdout in the requested format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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