UNPKG

@whook/whook

Version:

Build strong and efficient REST web services.

41 lines (40 loc) 1.35 kB
import { type WhookCommandHandler } from '../types/commands.js'; import { type WhookCronsDefinitionsService } from '../services/CRONS_DEFINITIONS.js'; import { type LogService } from 'common-services'; import { type Injector, type Service } from 'knifecycle'; export declare const definition: { readonly name: "cronRun"; readonly description: "A command to run all instances of a cron"; readonly example: "whook cronRun --name handleTime"; readonly arguments: [{ readonly name: "name"; readonly description: "The cron handler name"; readonly schema: { readonly type: "string"; }; }, { readonly name: "date"; readonly description: "The run date"; readonly schema: { readonly type: "string"; readonly format: "date-time"; readonly default: string; }; }, { readonly name: "body"; readonly description: "Eventually override body"; readonly schema: { readonly type: "string"; }; }]; }; declare const _default: import("knifecycle").ServiceInitializer<{ CRONS_DEFINITIONS: WhookCronsDefinitionsService; $injector: Injector<Service>; log: LogService; }, WhookCommandHandler<{ name: string; date: string; body: string; }>>; export default _default;