@qodalis/angular-cli
Version:
A lightweight and flexible command-line interface (CLI) tool designed to streamline workflows and automate tasks for developers.
24 lines (23 loc) • 1.16 kB
TypeScript
import { ICliExecutionContext, CliProcessCommand, ICliCommandExecutorService, ICliCommandProcessorRegistry } from '@qodalis/cli-core';
import * as i0 from "@angular/core";
export declare class CliCommandExecutorService implements ICliCommandExecutorService {
private readonly registry;
private commandParser;
constructor(registry: ICliCommandProcessorRegistry);
executeCommand(command: string, context: ICliExecutionContext): Promise<void>;
private executeSingleCommand;
showHelp(command: CliProcessCommand, context: ICliExecutionContext): Promise<void>;
private versionRequested;
private setContextProcessorRequested;
private helpRequested;
/**
* Validates the command arguments before execution.
* @param context The current CLI execution context.
* @param processor The processor to validate.
* @param args The command arguments.
* @returns True if the arguments are valid, false otherwise.
*/
private validateBeforeExecution;
static ɵfac: i0.ɵɵFactoryDeclaration<CliCommandExecutorService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CliCommandExecutorService>;
}