code: func NewCmdVersion(out io.Writer) *cobra.Command {
  	cmd := &cobra.Command{
  		Use:   "version",
  		Short: "Print the version of kubeadm",
  		Run: func(cmd *cobra.Command, args []string) {
  			err := RunVersion(out, cmd)
  			kubeadmutil.CheckErr(err)
  		},
  	}
  	cmd.Flags().StringP("output", "o", "", "Output format; available options are 'yaml', 'json' and 'short'")
  	return cmd
  }
docs: // NewCmdVersion provides the version information of kubeadm.