TypeScript Rewrite: Help command#35
Open
d4mation wants to merge 16 commits intoENG-219/app-bootstrapfrom
Open
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Port the rich console styling from the original PHP help command: - Decorative banner with colored P/U/P title - Command list displayed in a formatted table with yellow names - Topic detail view with colored sections, code blocks, and tables - Add table() and section underline helpers to output utility - Fix link regex ordering to prevent ANSI escape code corruption Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Integration tests for the help command covering banner, command table, topic detail rendering, section headers, code blocks, argument tables, markdown stripping, sub-commands, and unknown topic error handling. Unit tests for output.table(), output.section(), and output.title(). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 tasks
d4mation
commented
Feb 13, 2026
| */ | ||
| export function registerHelpCommand(program: Command): void { | ||
| program | ||
| .command('help [topic]', { isDefault: true }) |
Contributor
Author
There was a problem hiding this comment.
isDefault: true is to replicate how in the PHP version, php pup runs php pup help by default.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎫 ENG-219
Reference
Summary
helpcommand that displays usage information and topic-based documentationdocs/directory for topic helpDependencies
This PR depends on #30 (app-bootstrap) being merged first.
Test plan
npx pup helpdisplays available commandsnpx pup help <topic>displays topic documentationbunx pup help <topic>matches the output ofcomposer -- pup help <topic>