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