version

package
v0.0.0-...-6a89294 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "Print the version number of metadata service",
	Long:  `All software has versions. This is metadata service`,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Printf("Version: %s\n", version.Version)
		fmt.Printf("Build Date: %s\n", version.BuildDate)
		fmt.Printf("Git Commit: %s\n", version.GitCommit)
		fmt.Printf("Git Version: %s\n", version.GitVersion)
		fmt.Printf("Go Version: %s\n", version.GoVersion)
		fmt.Printf("OS / Arch: %s\n", version.OsArch)
	},
}

VersionCmd represents the version command.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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