@adonisjs/ace
Version:
Commandline apps framework used by AdonisJs
8 lines (7 loc) • 375 B
TypeScript
import { CommandsGroup, SerializedCommand } from '../Contracts';
/**
* Loops over the commands and converts them to an array of sorted groups with
* nested commands inside them. The grouping is done using the command
* namespace seperated with `:`. Example: `make:controller`
*/
export declare function sortAndGroupCommands(commands: SerializedCommand[]): CommandsGroup;