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
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.