UNPKG

@swell/cli

Version:

Swell's command line interface/utility

52 lines (51 loc) 1.99 kB
import { InspectResourceCommand, InspectResourceCommandParsed } from '../../inspect-resource-command.js'; interface FunctionRecord { id?: string; kind?: string; name?: string; enabled?: boolean; cron?: { schedule?: string; }; route?: { headers?: string[]; methods?: string[]; public?: boolean; }; model?: { events?: string[]; }; date_cron_scheduled?: string; date_final_attempt?: string; app_id?: string; } export default class Functions extends InspectResourceCommand { static summary: string; static description: string; static args: { identifier: import("@oclif/core/lib/interfaces/parser.js").Arg<string | undefined, Record<string, unknown>>; }; static flags: { app: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>; live: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>; json: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>; yes: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>; }; static examples: string[]; protected resourceLabel: string; protected resourceLabelSingular: string; protected adminPath: string; protected commandName: string; run(): Promise<void>; protected metaFor(r: FunctionRecord): string | undefined; protected filterListResults<T>(results: T[]): T[]; protected emitDetail(record: FunctionRecord, flags: InspectResourceCommandParsed['flags']): void; /** * Model-triggered functions emit `/events:webhooks` rows on each invocation. * Route and cron functions do not — pointing the agent at an empty query * would teach them their function isn't running. The logs hint always * applies as long as we have a function name. */ protected hints(record: FunctionRecord): string[]; } export {};