UNPKG

375 BTypeScriptView Raw
1import { CommandsGroup, SerializedCommand } from '../Contracts';
2/**
3 * Loops over the commands and converts them to an array of sorted groups with
4 * nested commands inside them. The grouping is done using the command
5 * namespace seperated with `:`. Example: `make:controller`
6 */
7export declare function sortAndGroupCommands(commands: SerializedCommand[]): CommandsGroup;