Files
maphew 469f893888 feat: auto-generate CLI reference docs from help.ts
Add generateCommandTable() to help.ts and a generation script that
produces two artifacts: a Markdoc partial for the command table and
a full CLI reference page. Both are generated by script/generate.ts
and auto-committed by the generate.yml workflow on push to dev.

Replace hand-written command table in cli.md with the generated
partial and add a nav entry for the new CLI Command Reference page.

Closes #572
2026-02-21 11:24:33 -07:00

6 lines
144 B
TypeScript
Executable File

#!/usr/bin/env bun
import { $ } from "bun"
await $`bun run --conditions=browser ./src/kilocode/generate-cli-docs.ts`.cwd("packages/opencode")