code: func RunEditOnCreate(f cmdutil.Factory, printFlags *genericclioptions.PrintFlags, recordFlags *genericclioptions.RecordFlags, ioStreams genericclioptions.IOStreams, cmd *cobra.Command, options *resource.FilenameOptions) error {
  	editOptions := editor.NewEditOptions(editor.EditBeforeCreateMode, ioStreams)
  	editOptions.FilenameOptions = *options
  	editOptions.ValidateOptions = cmdutil.ValidateOptions{
  		EnableValidation: cmdutil.GetFlagBool(cmd, "validate"),
  	}
  	editOptions.PrintFlags = printFlags
  	editOptions.ApplyAnnotation = cmdutil.GetFlagBool(cmd, cmdutil.ApplyAnnotationsFlag)
  	editOptions.RecordFlags = recordFlags
  
  	err := editOptions.Complete(f, []string{}, cmd)
  	if err != nil {
  		return err
  	}
  	return editOptions.Run()
  }
docs: // RunEditOnCreate performs edit on creation