code: func NewEditOptions(editMode EditMode, ioStreams genericclioptions.IOStreams) *EditOptions {
  	return &EditOptions{
  		RecordFlags: genericclioptions.NewRecordFlags(),
  
  		EditMode: editMode,
  
  		PrintFlags: genericclioptions.NewPrintFlags("edited").WithTypeSetter(scheme.Scheme),
  
  		editPrinterOptions: &editPrinterOptions{
  			// create new editor-specific PrintFlags, with all
  			// output flags disabled, except json / yaml
  			printFlags: (&genericclioptions.PrintFlags{
  				JSONYamlPrintFlags: genericclioptions.NewJSONYamlPrintFlags(),
  			}).WithDefaultOutput("yaml"),
  			ext:       ".yaml",
  			addHeader: true,
  		},
  
  		WindowsLineEndings: goruntime.GOOS == "windows",
  
  		Recorder: genericclioptions.NoopRecorder{},
  
  		IOStreams: ioStreams,
  	}
  }
docs: // NewEditOptions returns an initialized EditOptions instance