1
0
Fork 0
mirror of https://github.com/kyverno/policy-reporter.git synced 2024-12-14 11:57:32 +00:00
policy-reporter/cmd/version.go

18 lines
294 B
Go
Raw Permalink Normal View History

package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
func newVersionCMD(version string) *cobra.Command {
return &cobra.Command{
Use: "version",
Short: "Policy Reporter AppVersion",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("AppVersion: " + version)
},
}
}