Skip to content

Commit 5222144

Browse files
author
Christopher Ludden
committed
fixup! feat: adds cli, workflow_update features
1 parent 5874a3e commit 5222144

File tree

4 files changed

+110
-90
lines changed

4 files changed

+110
-90
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
a protoc plugin for generating typed temporal clients and workers in Go from protobuf schemas
44

5-
inspired by [github.com/cretz/temporal-sdk-go-advanced](https://github.com/cretz/temporal-sdk-go-advanced)
6-
75
**Table of Contents**
86

97
- [protoc-gen-go-temporal](#protoc-gen-go-temporal)
@@ -16,14 +14,16 @@ inspired by [github.com/cretz/temporal-sdk-go-advanced](https://github.com/cretz
1614
- [CLI](#cli)
1715
- [License](#license)
1816

17+
inspired by [github.com/cretz/temporal-sdk-go-advanced](https://github.com/cretz/temporal-sdk-go-advanced)
18+
1919
## Features
2020

2121
- typed client with:
2222
- methods for executing workflows, queries, signals, and updates
2323
- methods for cancelling or terminating workflows
2424
- default `client.StartWorkflowOptions` and `client.UpdateWorkflowWithOptionsRequest`
2525
- dynamic workflow and update ids via [Bloblang expressions](#id-expressions)
26-
- default timeouts, id reuse policies, retry policies, wait policies
26+
- default timeouts, id reuse policies, retry policies, search attributes, wait policies
2727
- typed worker helpers with:
2828
- functions for calling activities and local activities from workflows
2929
- functions for executing child workflows and signalling external workflows
@@ -411,28 +411,28 @@ GLOBAL OPTIONS:
411411
412412
$ go run example/main.go create-foo -d --name test
413413
success
414-
workflow_id: create-foo/test
415-
execution_id: 44cacae1-6a13-4b4a-8db7-d29eaafd1499
414+
workflow id: create-foo/test
415+
run id: 44cacae1-6a13-4b4a-8db7-d29eaafd1499
416416
417417
$ go run example/main.go set-foo-progress -w create-foo/test --progress 5.7
418418
success
419419
420420
$ go run example/main.go get-foo-progress -w create-foo/test
421421
{
422422
"progress": 5.7,
423-
"status": 2
423+
"status": "FOO_STATUS_CREATING"
424424
}
425425
426426
$ go run example/main.go update-foo-progress -w create-foo/test --progress 100
427427
{
428428
"progress": 100,
429-
"status": 1
429+
"status": "FOO_STATUS_READY"
430430
}
431431
432432
$ go run example/main.go get-foo-progress -w create-foo/test
433433
{
434434
"progress": 100,
435-
"status": 1
435+
"status": "FOO_STATUS_READY"
436436
}
437437
```
438438

gen/example/v1/example_temporal.pb.go

Lines changed: 41 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/simple/simple_temporal.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)