parse-command.d.ts 309 B

1234567891011
  1. import { NotEmptyArray } from './common-types';
  2. export declare function parseCommand(cmd: string): ParsedCommand;
  3. export interface ParsedCommand {
  4. cmd: string;
  5. demanded: Positional[];
  6. optional: Positional[];
  7. }
  8. export interface Positional {
  9. cmd: NotEmptyArray<string>;
  10. variadic: boolean;
  11. }