cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 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", version.Version)
		fmt.Printf("Build Date: %s", version.BuildDate)
		fmt.Printf("Git Commit: %s", version.GitCommit)
		fmt.Printf("Git Version: %s", version.GitVersion)
		fmt.Printf("Go Version: %s", version.GoVersion)
		fmt.Printf("OS / Arch: %s", version.OsArch)
	},
}

VersionCmd represents the version command.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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