Skip to content

Commit c5e221c

Browse files
authored
DBOS CLI (#105)
- Add a CLI for workflow management and convenient start/migrate/postgres utilities - Update releaser program such that it 1) compiles the CLI against a few common architectures and 2) attach these as assets to the release # Usage <img width="650" height="352" alt="Screenshot 2025-09-03 at 09 56 44" src="https://github.com/user-attachments/assets/cbed1460-00a3-4853-9871-59b45c189c9e" /> # CLI installation - Manually by downloading the asset from github - Running `go install github.com/dbos-inc/dbos-transact-golang/cmd/dbos` (note that the version, e.g. `@latest`, has to be specified if running go install outside of a go project) Example (go install and local dev build) <img width="733" height="92" alt="Screenshot 2025-09-03 at 09 51 04" src="https://github.com/user-attachments/assets/ba16968a-ca51-4071-bb23-fecf1ee36ed6" /> <img width="843" height="92" alt="Screenshot 2025-09-03 at 09 51 22" src="https://github.com/user-attachments/assets/bf9cd879-c824-497c-b230-dfad141d9f1a" /> # Output format The CLI has a global `--json` flag, e.g.: <img width="728" height="476" alt="Screenshot 2025-09-03 at 09 55 28" src="https://github.com/user-attachments/assets/620f89f6-9945-4695-b860-7daeb2461e1e" /> # Notes - `reset` destroy / recreates the target database, but does not perform any migration. Migrations will be applied next time a DBOS context is created against that database. - `init` bootstraps a `dbos-toolbox` application
1 parent 68cdafb commit c5e221c

25 files changed

+2708
-69
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,11 @@ jobs:
6565
working-directory: ./dbos
6666
env:
6767
PGPASSWORD: a!b@c$d()e*_,/:;=?@ff[]22
68-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
70+
- name: Run CLI tests
71+
run: go vet ./... && gotestsum --format github-action -- -race -v -count=1 ./...
72+
working-directory: ./cmd/dbos
73+
env:
74+
PGPASSWORD: a!b@c$d()e*_,/:;=?@ff[]22
75+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)