1 | import { HandleCommand } from "../../HandleCommand";
|
2 | import { HandlerContext } from "../../HandlerContext";
|
3 | import { Maker } from "../../util/constructionUtils";
|
4 | import { CommandDetails } from "../CommandDetails";
|
5 | import { ProjectAction } from "../common/projectAction";
|
6 | import { RepoRef } from "../common/RepoId";
|
7 | import { AnyProjectEditor } from "../edit/projectEditor";
|
8 | import { ProjectPersister } from "./generatorUtils";
|
9 | import { SeedDrivenGeneratorParameters } from "./SeedDrivenGeneratorParameters";
|
10 | export declare type EditorFactory<P> = (params: P, ctx: HandlerContext) => AnyProjectEditor<P>;
|
11 |
|
12 |
|
13 |
|
14 | export interface GeneratorCommandDetails<P extends SeedDrivenGeneratorParameters> extends CommandDetails {
|
15 | redirecter: (r: RepoRef) => string;
|
16 | projectPersister?: ProjectPersister;
|
17 | afterAction?: ProjectAction<P>;
|
18 | }
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | export declare function generatorHandler<P extends SeedDrivenGeneratorParameters>(editorFactory: EditorFactory<P>, factory: Maker<P>, name: string, details?: Partial<GeneratorCommandDetails<P>>): HandleCommand;
|
31 |
|
\ | No newline at end of file |