UNPKG

1.39 kBTypeScriptView Raw
1import { NoParameters } from "@atomist/automation-client/lib/SmartParameters";
2import { CodeInspectionRegistration } from "../registration/CodeInspectionRegistration";
3import { CodeTransformRegistration } from "../registration/CodeTransformRegistration";
4import { CommandHandlerRegistration } from "../registration/CommandHandlerRegistration";
5import { GeneratorRegistration } from "../registration/GeneratorRegistration";
6/**
7 * Manage command registrations.
8 */
9export interface CommandRegistrationManager {
10 /**
11 * Add a generic command to this machine
12 * @return {this}
13 */
14 addCommand<PARAMS = NoParameters>(command: CommandHandlerRegistration<PARAMS>): this;
15 /**
16 * Add a generator to this machine to enable project creation
17 * @return {this}
18 */
19 addGeneratorCommand<PARAMS = NoParameters>(generator: GeneratorRegistration<PARAMS>): this;
20 /**
21 * Add a code transformation to this machine.
22 * @return {this}
23 */
24 addCodeTransformCommand<PARAMS = NoParameters>(ctr: CodeTransformRegistration<PARAMS>): this;
25 /**
26 * Add a code inspection to this machine.
27 * Unlike code transformations, code inspections cannot mutate projects.
28 * @return {this}
29 */
30 addCodeInspectionCommand<R, PARAMS = NoParameters>(cir: CodeInspectionRegistration<R, PARAMS>): this;
31}
32//# sourceMappingURL=CommandRegistrationManager.d.ts.map
\No newline at end of file