code: func NewCmdKustomize(streams genericclioptions.IOStreams) *cobra.Command {
  	var o kustomizeOptions
  
  	cmd := &cobra.Command{
  		Use:     "kustomize <dir>",
  		Short:   i18n.T("Build a kustomization target from a directory or a remote url."),
  		Long:    kustomizeLong,
  		Example: kustomizeExample,
  
  		RunE: func(cmd *cobra.Command, args []string) error {
  			err := o.Validate(args)
  			if err != nil {
  				return err
  			}
  			return kustomize.RunKustomizeBuild(streams.Out, fs.MakeRealFS(), o.kustomizationDir)
  		},
  	}
  
  	return cmd
  }
docs: // NewCmdKustomize returns a kustomize command