Skip to content

Add count command - #303

Open
Psychox1k wants to merge 1 commit into
mate-academy:mainfrom
Psychox1k:add-count-command
Open

Psychox1k wants to merge 1 commit into
mate-academy:mainfrom
Psychox1k:add-count-command

Conversation

@Psychox1k

Copy link
Copy Markdown

What

Adds a count command: node notes.js count prints how many notes are stored, e.g. You have 3 notes.

Why

Gives a quick way to see how many notes you have without listing them all.

Changes

  • notes.js: new count case using store.all().length; uses singular "note" when the count is 1 (You have 1 note.); added count to the help text.
  • README.md: documented the new command.

For reviewers

  • No new automated test covers count; existing 3 tests pass (npm test).
  • Manually checked only the empty case (You have 0 notes.).

🤖 Generated with Claude Code

Prints how many notes are stored, e.g. "You have 3 notes.".
Also lists the command in the help text and README.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant