469f893888
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
12 lines
239 B
TypeScript
Executable File
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`
|