mirror of
https://github.com/kyverno/policy-reporter.git
synced 2024-12-14 11:57:32 +00:00
18 lines
294 B
Go
18 lines
294 B
Go
|
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)
|
||
|
},
|
||
|
}
|
||
|
}
|