Files
reverse-engineering-anything/scripts/lib/catalog-cli.d.mts
T
Ysopwnableandgensokyo-dev 4ea24b6f8e refactor(cli): derive build catalogs from the REA command registry
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>
2026-11-16 18:57:12 +08:00

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[];