From 686892bebc8bbbf9c63283b276c34caa7d0acd91 Mon Sep 17 00:00:00 2001 From: vinla Date: Tue, 23 Jun 2026 14:04:21 +0100 Subject: [PATCH] Add count command to notes CLI Co-Authored-By: Claude Opus 4.8 (1M context) --- notes.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/notes.js b/notes.js index df64a18..d87a838 100644 --- a/notes.js +++ b/notes.js @@ -39,6 +39,11 @@ function main() { } break; } + case "count": { + const notes = store.all(); + console.log(`You have ${notes.length} notes.`); + break; + } case "delete": { const id = Number(rest[0]); const ok = store.remove(id);