1 | export interface Logger {
|
2 | ok: (msg: string) => void;
|
3 | notice: (msg: string) => void;
|
4 | warn: (msg: string) => void;
|
5 | err: (msg: string) => void;
|
6 | log: (msg: string) => void;
|
7 | colorful: (msg: string) => void;
|
8 | }
|
9 | export interface Prompter {
|
10 | prompt: (arg0: any) => Promise<any>;
|
11 | }
|
12 | export interface RenderedAction {
|
13 | file?: string;
|
14 | attributes: any;
|
15 | body: string;
|
16 | }
|
17 | export interface RunnerConfig {
|
18 | exec?: (sh: string, body: string) => void;
|
19 | templates?: string;
|
20 | cwd?: string;
|
21 | logger?: Logger;
|
22 | debug?: boolean;
|
23 | helpers?: any;
|
24 | createPrompter?: () => Prompter;
|
25 | }
|
26 | export interface ResolverIO {
|
27 | exists: (arg0: string) => Promise<boolean>;
|
28 | load: (arg0: string) => Promise<Record<string, any>>;
|
29 | none: (arg0: string) => Record<string, any>;
|
30 | }
|
31 | export declare type ActionResult = any;
|
32 | export interface RunnerResult {
|
33 | success: boolean;
|
34 | time: number;
|
35 | actions: ActionResult[];
|
36 | failure?: {
|
37 | message: string;
|
38 | availableActions: string[];
|
39 | };
|
40 | }
|