| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Fixes a CLI flag-parsing bug where --readPermission and --writePermission could overwrite each other due to sharing the same Oclif flag definition object, causing readPermission to be dropped in requests.
Changes:
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file| File | Description |
|---|---|
| src/flags.ts | Changes notePermission from a shared flag object to a factory to avoid parser overwrite. |
| src/commands/notes/create.ts | Uses distinct flag definitions for readPermission/writePermission via notePermission(). |
| src/commands/notes/update.ts | Uses distinct flag definitions for readPermission/writePermission via notePermission(). |
| src/commands/team-notes/create.ts | Uses distinct flag definitions for readPermission/writePermission via notePermission(). |
| src/commands/team-notes/update.ts | Uses distinct flag definitions for readPermission/writePermission via notePermission(). |
| test/note-permission-flags.test.ts | Adds parsing tests to prevent regressions for create/update across personal/team notes. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #106
Create separate flag definitions for readPermission and writePermission so their values don’t overwrite each other.