mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 08:21:50 +00:00
wip: tui api
This commit is contained in:
parent
01f8d3b05d
commit
5aafab118f
13 changed files with 127 additions and 414 deletions
|
|
@ -10,18 +10,7 @@ for arg in "$@"; do
|
|||
fi
|
||||
done
|
||||
|
||||
echo "Starting opencode server on port 4096..."
|
||||
bun run ./packages/opencode/src/index.ts serve --port 4096 &
|
||||
SERVER_PID=$!
|
||||
|
||||
echo "Waiting for server to start..."
|
||||
sleep 3
|
||||
|
||||
echo "Fetching OpenAPI spec from http://127.0.0.1:4096/doc..."
|
||||
curl -s http://127.0.0.1:4096/doc > openapi.json
|
||||
|
||||
echo "Stopping server..."
|
||||
kill $SERVER_PID
|
||||
bun run ./packages/opencode/src/index.ts generate > openapi.json
|
||||
|
||||
echo "Running stl builds create..."
|
||||
stl builds create --branch dev --pull --allow-empty --targets go
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue