UNPKG

923 BTypeScriptView Raw
1import { PromptModule } from '@ionic/cli-framework-prompts';
2import { CommandLineInputs, CommandLineOptions, CommandMetadata, GenerateOptions, IConfig, ILogger, IProject, IShell, IonicContext, Runner } from '../definitions';
3export 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}
11export 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}