func NewVersionCommand() *cobra.Command {
	return &cobra.Command{
		Use:   "version",
		Short: "Prints the plugin version",
		RunE: func(cmd *cobra.Command, args []string) error {
			out := cmd.OutOrStdout()
			fmt.Fprintf(out, "Version:      %s\n", Version)
			fmt.Fprintf(out, "Build Date:   %s\n", BuildDate)
			fmt.Fprintf(out, "Git Revision: %s\n", GitRevision)
			return nil
		},
	}
}
// NewVersionCommand implements 'kn version' command
NewVersionCommand implements 'kn version' command
// NewVersionCommand implements ' kn version ' command
func NewVersionCommand() *cobra.Command {
	return &cobra.Command{
		Use:   "version",
		Short: "Prints the plugin version",
		RunE: func(cmd *cobra.Command, args []string) error {
			out := cmd.OutOrStdout()
			fmt.Fprintf(out, "Version:      %s\n", Version)
			fmt.Fprintf(out, "Build Date:   %s\n", BuildDate)
			fmt.Fprintf(out, "Git Revision: %s\n", GitRevision)
			return nil
		},
	}
}
func NewVersionCommand ( ) * cobra . Command { return & cobra . Command { Use : " " , Short : " " , RunE : func ( cmd * cobra . Command , args [ ] string ) error { out := cmd . OutOrStdout ( ) fmt . Fprintf ( out , " \n " , Version ) fmt . Fprintf ( out , " \n " , BuildDate ) fmt . Fprintf ( out , " \n " , GitRevision ) return nil } , } }
NewVersionCommand implements 'kn version' command
NewVersionCommand implements ' kn version ' command