Files
hyperframes/packages/cli/src/commands/_examples.ts
T
James RussoandClaude Opus 4.6 5e8ff36675 refactor(cli): colocate --help examples in command files (#202)
Move per-command examples from the centralized `help.ts` record into
each command file as `export const examples: Example[]`. help.ts now
dynamically imports them at --help time.

This means adding a new command and its examples happens in one file
instead of two, reducing the chance of forgetting examples.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 14:11:38 -07:00

7 lines
216 B
TypeScript

/**
* Shared type for CLI command examples.
* Each command file exports `examples` using this type.
* help.ts dynamically imports them at --help time.
*/
export type Example = [comment: string, command: string];