UNPKG

@adpt/cloud

Version:
22 lines 699 B
import { ChangeType } from "@adpt/core"; import { Action, ActionContext, ShouldActDetail } from "./Action"; /** * Properties for the {@link action.Command | Command} component. * @public */ export interface CommandProps { shouldRun?: string[]; shouldDelete?: string[]; run: string[]; delete?: string[]; } /** * Primitive component that can be used to interact with commands via the * OS shell to implement actions in Adapt. * @public */ export declare class Command extends Action<CommandProps> { shouldAct(op: ChangeType, ctx: ActionContext): Promise<ShouldActDetail>; action(op: ChangeType, ctx: ActionContext): Promise<void>; } //# sourceMappingURL=Command.d.ts.map