code: func NewCmdCreateJob(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
  	o := NewCreateJobOptions(ioStreams)
  	cmd := &cobra.Command{
  		Use:     "job NAME --image=image [--from=cronjob/name] -- [COMMAND] [args...]",
  		Short:   jobLong,
  		Long:    jobLong,
  		Example: jobExample,
  		Run: func(cmd *cobra.Command, args []string) {
  			cmdutil.CheckErr(o.Complete(f, cmd, args))
  			cmdutil.CheckErr(o.Validate())
  			cmdutil.CheckErr(o.Run())
  		},
  	}
  
  	o.PrintFlags.AddFlags(cmd)
  
  	cmdutil.AddApplyAnnotationFlags(cmd)
  	cmdutil.AddValidateFlags(cmd)
  	cmdutil.AddDryRunFlag(cmd)
  	cmd.Flags().StringVar(&o.Image, "image", o.Image, "Image name to run.")
  	cmd.Flags().StringVar(&o.From, "from", o.From, "The name of the resource to create a Job from (only cronjob is supported).")
  
  	return cmd
  }
docs: // NewCmdCreateJob is a command to ease creating Jobs from CronJobs.