@triviality/commander
Version:
Commander as a Triviality Module
14 lines (13 loc) • 527 B
TypeScript
import { Command } from 'commander';
import { LoggerInterface } from '@triviality/logger';
import { CommanderConfigurationInterface } from './CommanderConfigurationInterface';
/**
* Shows errors when no valid command is found or no command given.
*/
export declare class CommanderBootstrapService {
private commander;
private commands;
private logger;
constructor(commander: Command, commands: Iterable<CommanderConfigurationInterface>, logger: LoggerInterface);
handle(argv?: string[]): Promise<void>;
}