refactor(catalog): import CLI metadata from its owner

This commit is contained in:
morluto
2026-10-10 00:49:14 +08:00
parent 4144e454f3
commit 8c96baab80
6 changed files with 18 additions and 53 deletions
+12
View File
@@ -0,0 +1,12 @@
export function createCliInventory(cli: unknown): {
readonly primary: readonly string[];
readonly aliases: readonly {
readonly name: string;
readonly target: string;
}[];
};
export function cliCommandOptionNames(
cli: unknown,
name: string,
): readonly string[];
export function cliCommandDescriptionIssues(cli: unknown): readonly string[];