brocolito
Version:
Create type-safe CLIs to align local development and pipeline workflows
15 lines (14 loc) • 433 B
TypeScript
import type { Command } from "./types.ts";
import { type ParseResult } from "./arguments.ts";
type FoundCommand = ({
command: Command;
} & ParseResult) | {
command?: Command;
error: string;
completionSubcommands?: Record<string, {
description: string;
}>;
};
export declare const findCommand: (args: string[]) => FoundCommand;
export declare const parse: (argv?: string[]) => Promise<unknown>;
export {};