cmd

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Core version info
	Version   = "dev"
	GitCommit = "unknown"
	BuildDate = "unknown"

	// Manifest info
	Name        = "vers-cli"
	Description = "A CLI tool for version management"
	Author      = "the VERS team"
	Repository  = "https://github.com/hdresearch/vers-cli"
	License     = "MIT"
)

These variables are set at build time using ldflags

Functions

func DebugPrint

func DebugPrint(format string, args ...interface{})

DebugPrint prints debug information only when verbose mode is enabled

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type MetadataInfo

type MetadataInfo struct {
	Name        string `json:"name"`
	Version     string `json:"version"`
	Description string `json:"description"`
	GitCommit   string `json:"gitCommit"`
	BuildDate   string `json:"buildDate"`
	Author      string `json:"author"`
	Repository  string `json:"repository"`
	License     string `json:"license"`
	GoVersion   string `json:"goVersion"`
	Platform    string `json:"platform"`
	Arch        string `json:"arch"`
	Timestamp   string `json:"timestamp"`
}

MetadataInfo represents the complete version information

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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