import { Command } from '@oclif/core'; import { InstanceCommand } from './instance-command.js'; import { type JobExecution } from '../operations/jobs/index.js'; /** * Base command for job operations. * * Extends InstanceCommand with job-specific functionality like * displaying job logs on failure. * * @example * export default class MyJobCommand extends JobCommand { * async run(): Promise { * try { * await executeJob(this.instance, 'my-job'); * } catch (error) { * if (error instanceof JobExecutionError) { * await this.showJobLog(error.execution); * } * throw error; * } * } * } */ export declare abstract class JobCommand extends InstanceCommand { /** * Display a job's log file content and error message if available. * Outputs to stderr since this is typically shown for failed jobs. * * @param execution - Failed job execution object with log file information */ protected showJobLog(execution: JobExecution): Promise; }