UNPKG

@atomist/sdm-core

Version:

Atomist Software Delivery Machine - Implementation

11 lines 632 B
import { HandlerContext, HandlerResult, ParameterType } from "@atomist/automation-client"; import { CommandRegistration } from "@atomist/sdm"; /** * Invoke any registered command programmatically in this SDM instance * * @param command name of the CommandRegistration or actual CommandRegistration instance to run * @param parameters parameters to be passed to the command * @param ctx HandlerContext instance */ export declare function invokeCommand<T extends ParameterType>(command: string | CommandRegistration<T>, parameters: T, ctx: HandlerContext): Promise<HandlerResult>; //# sourceMappingURL=invokeCommand.d.ts.map