1 | import { PromptModule } from '@ionic/cli-framework';
|
2 | import { CommandLineInputs, CommandLineOptions, CommandMetadata, GenerateOptions, IConfig, ILogger, IProject, IShell, IonicContext, Runner } from '../definitions';
|
3 | export interface GenerateRunnerDeps {
|
4 | readonly config: IConfig;
|
5 | readonly ctx: IonicContext;
|
6 | readonly log: ILogger;
|
7 | readonly project: IProject;
|
8 | readonly prompt: PromptModule;
|
9 | readonly shell: IShell;
|
10 | }
|
11 | export declare abstract class GenerateRunner<T extends GenerateOptions> implements Runner<T, void> {
|
12 | protected abstract readonly e: GenerateRunnerDeps;
|
13 | createOptionsFromCommandLine(inputs: CommandLineInputs, options: CommandLineOptions): GenerateOptions;
|
14 | ensureCommandLine(inputs: CommandLineInputs, options: CommandLineOptions): Promise<void>;
|
15 | abstract getCommandMetadata(): Promise<Partial<CommandMetadata>>;
|
16 | abstract run(options: T): Promise<void>;
|
17 | }
|