Skip to content

Add edit command to notes CLI - #238

Closed
KillaShy wants to merge 7 commits into
mate-academy:mainfrom
KillaShy:review-me
Closed

KillaShy wants to merge 7 commits into
mate-academy:mainfrom
KillaShy:review-me

Conversation

@KillaShy

@KillaShy KillaShy commented Sep 23, 2026 •

Copy link
Copy Markdown

Summary

  • Add store.edit(id, text) to lib/store.js
  • Add an edit <id> <text> command to notes.js and list it in the usage help

Test plan

  • CI passes (npm test)
  • node notes.js add hello then node notes.js edit 1 world updates the note

🤖 Generated with Claude Code

karynad-stack and others added 7 commits June 9, 2026 14:37
Resolve add/add conflict in lib/store.js by keeping review-me's version (main's code plus edit()).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@KillaShy KillaShy changed the title Add note storage, edit command, tests, and CI Add edit command to notes CLI Sep 23, 2026
@KillaShy

Copy link
Copy Markdown
Author

Yes, Claude caught the planted bug: edit() in lib/store.js crashes with a TypeError when no note has the given id. It also flagged smaller issues (no id validation, empty text wipes a note, no tests for edit).

@KillaShy KillaShy closed this by deleting the head repository Sep 23, 2026
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