type Version … // newCmdVersion provides the version information of kubeadm. func newCmdVersion(out io.Writer) *cobra.Command { … } // RunVersion provides the version information of kubeadm in format depending on arguments // specified in cobra.Command. func RunVersion(out io.Writer, cmd *cobra.Command) error { … }