INNER CODE UNIT · Go
versionCmd
derailed/popeye · cmd/version.go:18
func versionCmd() *cobra.Command {
return &cobra.Command{
Use: "version",
Short: "Prints version/build info",
Long: "Prints version/build information",
Run: func(cmd *cobra.Command, args []string) {
printVersion()
},
}
}
func printVersion() {
printLogo(report.ColorAqua, report.ColorLighSlate)
printTuple("Version", version)
printTuple("Commit", commit)
printTuple("Date", date)
}