cmd

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source

Banner is the VEF CLI ASCII art logo.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command.

func Init

func Init(ldflagsVersion, ldflagsDate string)

Init initializes version information from ldflags or runtime/debug.

func PrintBanner

func PrintBanner()

PrintBanner prints the banner and version info.

Types

type VersionInfo

type VersionInfo struct {
	Version string
	Date    string
	Dirty   bool
}

VersionInfo holds version and build information.

func GetVersionInfo

func GetVersionInfo(ldflagsVersion, ldflagsDate string) VersionInfo

GetVersionInfo returns version information from ldflags or runtime/debug.

func (VersionInfo) String

func (v VersionInfo) String() string

String formats version info as a readable string. The build date is omitted when unknown so unstamped dev builds do not advertise a missing timestamp.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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