Conversation
…date self hosted schemas.
There was a problem hiding this comment.
Pull request overview
Adds a custom Oclif help implementation to improve root (powersync --help) output by presenting a flatter, more tailored command list and separating first-party commands from plugin/other commands.
Changes:
- Introduces a custom
Helpsubclass (PowerSyncHelp) to override root help rendering. - Adds a Vitest test validating the new root help layout/sections.
- Wires the custom help class into Oclif via
oclif.helpClassincli/package.json.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
cli/src/help.ts |
New custom help renderer for root help output (grouping + sectioning). |
cli/test/commands/help.test.ts |
New test asserting root help shows flattened commands and expected sections. |
cli/package.json |
Configures Oclif to use the compiled custom help class via helpClass. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
This is great overall! I want to propose this grouping that mainly has more use-case based headings (shared, general, other all seemed a bit vague): |
@benitav That sounds like a good idea. I've implemented this.. Here is the new output |
This add a custom help parser, which allows displaying better tailored command help.
Sample output