1 | import { HandlerContext } from "@atomist/automation-client/lib/HandlerContext";
|
2 | import { ProjectOperationCredentials } from "@atomist/automation-client/lib/operations/common/ProjectOperationCredentials";
|
3 | import { RemoteRepoRef } from "@atomist/automation-client/lib/operations/common/RepoId";
|
4 | import { GitProject } from "@atomist/automation-client/lib/project/git/GitProject";
|
5 | import { CloneOptions } from "@atomist/automation-client/lib/spi/clone/DirectoryManager";
|
6 |
|
7 |
|
8 |
|
9 | export declare type WithLoadedProject<T = any> = (p: GitProject) => Promise<T>;
|
10 | export interface ProjectLoadingParameters {
|
11 | credentials: ProjectOperationCredentials;
|
12 | id: RemoteRepoRef;
|
13 | cloneOptions?: CloneOptions;
|
14 | context?: HandlerContext;
|
15 |
|
16 | readOnly: boolean;
|
17 | |
18 |
|
19 |
|
20 | cloneDir?: string;
|
21 | }
|
22 |
|
23 |
|
24 |
|
25 | export interface ProjectLoader {
|
26 | |
27 |
|
28 |
|
29 |
|
30 |
|
31 | doWithProject<T>(params: ProjectLoadingParameters, action: WithLoadedProject<T>): Promise<T>;
|
32 | }
|
33 |
|
\ | No newline at end of file |