gluegun
Version:
A delightful toolkit for building Node-powered CLIs.
16 lines (15 loc) • 536 B
TypeScript
import { Command } from '../domain/command';
import { Runtime } from './runtime';
import { GluegunParameters } from '../domain/toolbox';
/**
* This function performs some somewhat complex logic to find a command for a given
* set of parameters and plugins.
*
* @param runtime The current runtime.
* @param parameters The parameters passed in
* @returns object with plugin, command, and array
*/
export declare function findCommand(runtime: Runtime, parameters: GluegunParameters): {
command: Command;
array: string[];
};