You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
8. Generate temporal worker, client, and cli types, methods, interfaces, and functions
196
196
197
197
```shell
198
-
buf generate
198
+
buf mod update && buf generate
199
199
```
200
200
201
201
9. Implement the required Workflow and Activity interfaces
@@ -343,7 +343,8 @@ temporal server start-dev --dynamic-config-value "frontend.enableUpdateWorkflowE
343
343
344
344
*start worker*
345
345
```shell
346
-
go run example/main.go worker
346
+
go get -u github.com/cludden/protoc-gen-go-temporal@<release> && go mod tidy
347
+
go run main.go worker
347
348
```
348
349
349
350
11. Execute workflows, queries, signals, and updates
@@ -383,7 +384,7 @@ func main() {
383
384
384
385
*with generated cli*
385
386
```shell
386
-
$ go run example/main.go -h
387
+
$ go run main.go -h
387
388
NAME:
388
389
Example - an example temporal cli
389
390
@@ -406,27 +407,27 @@ COMMANDS:
406
407
GLOBAL OPTIONS:
407
408
--help, -h show help (default: false)
408
409
409
-
$ go run example/main.go create-foo -d --name test
410
+
$ go run main.go create-foo -d --name test
410
411
success
411
412
workflow id: create-foo/test
412
413
run id: 44cacae1-6a13-4b4a-8db7-d29eaafd1499
413
414
414
-
$ go run example/main.go set-foo-progress -w create-foo/test --progress 5.7
415
+
$ go run main.go set-foo-progress -w create-foo/test --progress 5.7
415
416
success
416
417
417
-
$ go run example/main.go get-foo-progress -w create-foo/test
418
+
$ go run main.go get-foo-progress -w create-foo/test
418
419
{
419
420
"progress": 5.7,
420
421
"status": "FOO_STATUS_CREATING"
421
422
}
422
423
423
-
$ go run example/main.go update-foo-progress -w create-foo/test --progress 100
424
+
$ go run main.go update-foo-progress -w create-foo/test --progress 100
424
425
{
425
426
"progress": 100,
426
427
"status": "FOO_STATUS_READY"
427
428
}
428
429
429
-
$ go run example/main.go get-foo-progress -w create-foo/test
430
+
$ go run main.go get-foo-progress -w create-foo/test
430
431
{
431
432
"progress": 100,
432
433
"status": "FOO_STATUS_READY"
@@ -629,4 +630,4 @@ The generated code includes resources that are compatible with the Temporal Go S
629
630
630
631
## License
631
632
Licensed under the [MIT License](LICENSE.md)
632
-
Copyright for portions of project cludden/protoc-gen-go-temporal are held by Chad Retz, 2021 as part of project cretz/temporal-sdk-go-advanced. All other copyright for project cludden/protoc-gen-go-temporal are held by Chris Ludden, 2023.
633
+
Copyright for portions of project cludden/protoc-gen-go-temporal are held by Chad Retz, 2021 as part of project cretz/temporal-sdk-go-advanced. All other copyright for project cludden/protoc-gen-go-temporal are held by Chris Ludden, 2023.
0 commit comments