Files
Kilo-Org_kilocode/script/generate.ts
T
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

12 lines
239 B
TypeScript
Executable File

#!/usr/bin/env bun
import { $ } from "bun"
await $`bun ./packages/sdk/js/script/build.ts`
await $`bun dev generate > ../sdk/openapi.json`.cwd("packages/opencode")
await $`bun ./script/generate-cli-docs.ts`
await $`./script/format.ts`