UNPKG

@qodalis/angular-cli

Version:

A lightweight and flexible command-line interface (CLI) tool designed to streamline workflows and automate tasks for developers.

26 lines (25 loc) 710 B
export type ParsedArg = { name: string; value: any; }; export type CommandParserOutput = { commandName: string; args: ParsedArg[]; }; /** * A utility class for parsing command strings into command names and arguments. */ export declare class CommandParser { /** * Parse a command string into a full command name and arguments. * @param command - The full command string. * @returns An object containing the full command name and arguments. */ parse(command: string): CommandParserOutput; /** * Parse individual values to their appropriate type. * @param value - The value to parse. * @returns The parsed value. */ private parseValue; }