UNPKG

1.03 kBTypeScriptView Raw
1import { BaseExecutor } from '@ionic/cli-framework';
2import { CommandInstanceInfo, CommandMetadata, CommandMetadataInput, CommandMetadataOption, ICommand, INamespace, NamespaceLocateResult } from '../definitions';
3export declare const VERSION_FLAGS: readonly string[];
4export declare const HELP_FLAGS: readonly string[];
5export interface ExecutorDeps {
6 readonly namespace: INamespace;
7}
8export 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}
12export declare function runCommand(runinfo: CommandInstanceInfo, argv: string[]): Promise<void>;
13export declare function metadataToCmdOptsEnv(metadata: CommandMetadata, cmdNameParts: string[]): Map<CommandMetadataOption, string>;
14export declare function getFullCommandParts(location: NamespaceLocateResult): string[];