mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 11:43:20 +00:00
Read CLI catalogs and registrar ownership from the REA command records, type-check the catalog helper and consolidate registrar types. Preserve the generated catalogs, mapping and CLI parity. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
17 lines
507 B
TypeScript
17 lines
507 B
TypeScript
import type { CliCommandEntry } from "../../src/cli/commandRegistry.js";
|
|
|
|
export function createCliInventory(entries: readonly CliCommandEntry[]): {
|
|
readonly primary: readonly string[];
|
|
readonly aliases: readonly {
|
|
readonly name: string;
|
|
readonly target: string;
|
|
}[];
|
|
};
|
|
export function cliCommandOptionNames(
|
|
entries: readonly CliCommandEntry[],
|
|
name: string,
|
|
): readonly string[];
|
|
export function cliCommandDescriptionIssues(
|
|
entries: readonly CliCommandEntry[],
|
|
): readonly string[];
|