code: func (o *CreateJobOptions) Run() error {
  	var job *batchv1.Job
  	if len(o.Image) > 0 {
  		job = o.createJob()
  	} else {
  		infos, err := o.Builder.
  			Unstructured().
  			NamespaceParam(o.Namespace).DefaultNamespace().
  			ResourceTypeOrNameArgs(false, o.From).
  			Flatten().
  			Latest().
  			Do().
  			Infos()
  		if err != nil {
  			return err
  		}
  		if len(infos) != 1 {
  			return fmt.Errorf("from must be an existing cronjob")
  		}
  
  		uncastVersionedObj, err := scheme.Scheme.ConvertToVersion(infos[0].Object, batchv1beta1.SchemeGroupVersion)
  		if err != nil {
  			return fmt.Errorf("from must be an existing cronjob: %v", err)
  		}
  		cronJob, ok := uncastVersionedObj.(*batchv1beta1.CronJob)
  		if !ok {
  			return fmt.Errorf("from must be an existing cronjob")
  		}
  
  		job = o.createJobFromCronJob(cronJob)
  	}
  	if !o.DryRun {
  		var err error
  		job, err = o.Client.Jobs(o.Namespace).Create(job)
  		if err != nil {
  			return fmt.Errorf("failed to create job: %v", err)
  		}
  	}
  
  	return o.PrintObj(job)
  }
docs: // Run performs the execution of 'create job' sub command