fix: align cli output tests and help examples

This commit is contained in:
Peter Steinberger
2026-01-21 05:20:31 +00:00
parent 968b967854
commit 810374d648
4 changed files with 21 additions and 6 deletions

View File

@@ -30,6 +30,11 @@ function buildRows(entries: Array<{ id: string; name?: string | undefined }>) {
}));
}
function formatEntry(entry: { id: string; name?: string | undefined }) {
const name = entry.name?.trim();
return name ? `${entry.id} ${theme.muted(name)}` : entry.id;
}
export function registerDirectoryCli(program: Command) {
const directory = program
.command("directory")