()
| 27 | } |
| 28 | |
| 29 | export function formatTopLevelHelp(): string { |
| 30 | return [ |
| 31 | "Usage:", |
| 32 | " plannotator --help", |
| 33 | " plannotator --version, -v", |
| 34 | " plannotator [--browser <name>]", |
| 35 | " plannotator review [--git] [PR_URL]", |
| 36 | " plannotator annotate <file.md | file.txt | file.html | https://... | folder/> [--markdown] [--no-jina] [--gate] [--json] [--hook]", |
| 37 | " plannotator annotate-last [--stdin] [--gate] [--json] [--hook]", |
| 38 | " plannotator setup-goal <interview|facts> <bundle.json | -> [--json]", |
| 39 | " plannotator last", |
| 40 | " plannotator archive", |
| 41 | " plannotator sessions", |
| 42 | " plannotator improve-context", |
| 43 | "", |
| 44 | "Run 'plannotator <command> --help' for command-specific usage.", |
| 45 | "", |
| 46 | "Note:", |
| 47 | " running 'plannotator' without arguments is for hook integration and expects JSON on stdin", |
| 48 | ].join("\n"); |
| 49 | } |
| 50 | |
| 51 | // Per-subcommand usage text. Keyed by the canonical subcommand token; aliases |
| 52 | // (e.g. `last` → `annotate-last`) are resolved in formatSubcommandHelp(). |
no outgoing calls
no test coverage detected