1 |
|
2 | import { AbstractExecutor } from '@ionic/cli-framework';
|
3 | import { CommandInstanceInfo, CommandMetadata, CommandMetadataInput, CommandMetadataOption, ICommand, INamespace } from '../definitions';
|
4 | export interface ExecutorDeps {
|
5 | readonly namespace: INamespace;
|
6 | }
|
7 | export declare class Executor extends AbstractExecutor<ICommand, INamespace, CommandMetadata, CommandMetadataInput, CommandMetadataOption> {
|
8 | readonly namespace: INamespace;
|
9 | constructor({ namespace }: ExecutorDeps);
|
10 | execute(argv: string[], env: NodeJS.ProcessEnv): Promise<void>;
|
11 | run(command: ICommand, cmdargs: string[], { location, env, executor }: CommandInstanceInfo): Promise<void>;
|
12 | }
|
13 | export declare function runCommand(runinfo: CommandInstanceInfo, argv: string[]): Promise<void>;
|
14 | export declare function metadataToCmdOptsEnv(metadata: CommandMetadata, cmdNameParts: string[]): Map<CommandMetadataOption, string>;
|