Skip to content

Commit 5a015bf

Browse files
committed
fix(import): use proper plural for memory count in listing output
1 parent 482d024 commit 5a015bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cli/commands/import/import-memory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export async function handleImportMemory(options: ImportResourceOptions): Promis
117117
memoryId = memories[0]!.memoryId;
118118
onProgress(`Found 1 memory: ${memoryId}. Auto-selecting.`);
119119
} else {
120-
console.log(`\nFound ${memories.length} memory(ies):\n`);
120+
console.log(`\nFound ${memories.length} ${memories.length === 1 ? 'memory' : 'memories'}:\n`);
121121
for (let i = 0; i < memories.length; i++) {
122122
const m = memories[i]!;
123123
console.log(` ${dim}[${i + 1}]${reset} ${m.memoryId}${m.status}`);

0 commit comments

Comments
 (0)