-
Notifications
You must be signed in to change notification settings - Fork 38
DBOS CLI #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…sion, as release assets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This look good--how did we decide to handle inputs and outputs? Based on yesterday's discussion, I think the best option is for the client (and therefore the CLI) to not return any serialized values.
This is a problem for getEvent
and eventually readStream
as they do nothing else—can we document the need to register non-standard output types for them specifically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Large and good PR, so okay to merge after smaller fixes. We can fix serialization in another PR.
- do not load input/ouputs in list workflows / get workflow - drop with force
I modified this PR to have the calls to ListWorkflows not load the input/outputs. I need to think a bit about the client -- right now a few methods do load input/output by default (e.g., With respect to documentation, I'll add that. Generally speaking workflow/step input/outputs have to be "serializable" in the Golang sense, that is, they must be publicly exported. This is because all go encoders use reflection under the hood (and private fields are not, by default, visible to the Reflect package (albeit backdoors exist but are documented as unsafe) |
Usage
CLI installation
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)

Output format
The CLI has a global

--json
flag, e.g.: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 adbos-toolbox
application