type diffFlags … // newCmdDiff returns the cobra command for `kubeadm upgrade diff` func newCmdDiff(out io.Writer) *cobra.Command { … } func validateManifestsPath(manifests ...string) (err error) { … } type FetchInitConfigurationFunc … func runDiff(fs *pflag.FlagSet, flags *diffFlags, args []string, fetchInitConfigurationFromCluster FetchInitConfigurationFunc) error { … }