code: func NewCmdCreateCronJob(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
  	o := NewCreateCronJobOptions(ioStreams)
  	cmd := &cobra.Command{
  		Use:     "cronjob NAME --image=image --schedule='0/5 * * * ?' -- [COMMAND] [args...]",
  		Aliases: []string{"cj"},
  		Short:   cronjobLong,
  		Long:    cronjobLong,
  		Example: cronjobExample,
  		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.Schedule, "schedule", o.Schedule, "A schedule in the Cron format the job should be run with.")
  	cmd.Flags().StringVar(&o.Restart, "restart", o.Restart, "job's restart policy. supported values: OnFailure, Never")
  
  	return cmd
  }
docs: // NewCmdCreateCronJob is a command to to create CronJobs.