Skip to content

Add count command#17

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

Add count command#17
aruizacevedo wants to merge 1 commit into
mate-academy:mainfrom
aruizacevedo:add-count-command

Conversation

@aruizacevedo

Copy link
Copy Markdown

Summary

  • Adds a count command: node notes.js count prints You have N notes.
  • Handles singular correctly (You have 1 note.)
  • Updates the help line in the default case to include count

Test plan

  • node notes.js count with no notes → You have 0 notes.
  • Add 3 notes, run node notes.js countYou have 3 notes.
  • Delete down to 1 note, run node notes.js countYou have 1 note.
  • node notes.js (no args) shows count in the commands list
  • node --test tests/notes.test.js — all 3 tests pass

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.8 <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