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