var cronjobLong … var cronjobExample … type CreateCronJobOptions … // NewCreateCronJobOptions returns an initialized CreateCronJobOptions instance func NewCreateCronJobOptions(ioStreams genericiooptions.IOStreams) *CreateCronJobOptions { … } // NewCmdCreateCronJob is a command to create CronJobs. func NewCmdCreateCronJob(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command { … } // Complete completes all the required options func (o *CreateCronJobOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error { … } // Run performs the execution of 'create cronjob' sub command func (o *CreateCronJobOptions) Run() error { … } func (o *CreateCronJobOptions) createCronJob() *batchv1.CronJob { … }