code: func NewCmdConfigView(f cmdutil.Factory, streams genericclioptions.IOStreams, ConfigAccess clientcmd.ConfigAccess) *cobra.Command {
  	o := &ViewOptions{
  		PrintFlags:   genericclioptions.NewPrintFlags("").WithTypeSetter(scheme.Scheme).WithDefaultOutput("yaml"),
  		ConfigAccess: ConfigAccess,
  
  		IOStreams: streams,
  	}
  
  	cmd := &cobra.Command{
  		Use:     "view",
  		Short:   i18n.T("Display merged kubeconfig settings or a specified kubeconfig file"),
  		Long:    viewLong,
  		Example: viewExample,
  		Run: func(cmd *cobra.Command, args []string) {
  			cmdutil.CheckErr(o.Complete(cmd, args))
  			cmdutil.CheckErr(o.Validate())
  			cmdutil.CheckErr(o.Run())
  		},
  	}
  
  	o.PrintFlags.AddFlags(cmd)
  
  	o.Merge.Default(true)
  	mergeFlag := cmd.Flags().VarPF(&o.Merge, "merge", "", "Merge the full hierarchy of kubeconfig files")
  	mergeFlag.NoOptDefVal = "true"
  	cmd.Flags().BoolVar(&o.RawByteData, "raw", o.RawByteData, "Display raw byte data")
  	cmd.Flags().BoolVar(&o.Flatten, "flatten", o.Flatten, "Flatten the resulting kubeconfig file into self-contained output (useful for creating portable kubeconfig files)")
  	cmd.Flags().BoolVar(&o.Minify, "minify", o.Minify, "Remove all information not used by current-context from the output")
  	return cmd
  }
docs: // NewCmdConfigView returns a Command instance for 'config view' sub command