mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-05 00:56:23 +00:00
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>
7 lines
216 B
TypeScript
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];
|