func VersionCmd() *cobra.Command {
	command := &cobra.Command{
		Use:     "version",
		Short:   "Print version",
		Long:    `Print version information`,
		Aliases: []string{"ver"},
		Args:    cobra.NoArgs,
		RunE: func(cmd *cobra.Command, args []string) error {
			if verbose == true {
				if err := build.PrintLongVersion(); err != nil {
					return err
				}
			} else {
				build.PrintVersion()
			}
			return nil
		},
	}
	return command
}
VersionCmd prints version information for this build
package cmd
import (
	"github.com/spf13/cobra"
	"github.com/particledecay/kconf/build"
)