func VersionCmd() *cobra.Command {
	cmd := &cobra.Command{
		Use:   "version",
		Short: "version prints the version of this binary",
		Args:  cobra.NoArgs,
		RunE: func(_ *cobra.Command, _ []string) error {
			fmt.Println(Version)
			return nil
		},
	}
	return cmd
}
VersionCmd - print current version of binary.
package app
import (
	"fmt"
	"github.com/spf13/cobra"
)
var Version = ""