Skip to content

feat: add count command to report the number of notes#1

Open
mgsell-lab wants to merge 1 commit into
mate-academy:mainfrom
mgsell-lab:feat/count-command
Open

feat: add count command to report the number of notes#1
mgsell-lab wants to merge 1 commit into
mate-academy:mainfrom
mgsell-lab:feat/count-command

Conversation

@mgsell-lab

Copy link
Copy Markdown

Adds a 'count' subcommand that prints how many notes are stored, with correct singular/plural wording. Extracts the message into a pure countMessage() helper and adds tests covering the 0/1/many cases. notes.js now exports the helper and only runs main() when invoked directly.

Adds a 'count' subcommand that prints how many notes are stored, with
correct singular/plural wording. Extracts the message into a pure
countMessage() helper and adds tests covering the 0/1/many cases.
notes.js now exports the helper and only runs main() when invoked
directly.
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.

2 participants