Skip to content

Commit e98275d

Browse files
author
Chris Ludden
authored
chore: updates README.md
1 parent 51212f8 commit e98275d

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
6666

6767
4. Initialize buf repository
6868
```shell
69-
mkdir proto && cd proto && buf init
69+
mkdir proto && cd proto && buf mod init
7070
```
7171

7272
5. Add dependency to `buf.yaml`
@@ -195,7 +195,7 @@ message SetFooProgressRequest {
195195
8. Generate temporal worker, client, and cli types, methods, interfaces, and functions
196196

197197
```shell
198-
buf generate
198+
buf mod update && buf generate
199199
```
200200

201201
9. Implement the required Workflow and Activity interfaces
@@ -343,7 +343,8 @@ temporal server start-dev --dynamic-config-value "frontend.enableUpdateWorkflowE
343343

344344
*start worker*
345345
```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
347348
```
348349

349350
11. Execute workflows, queries, signals, and updates
@@ -383,7 +384,7 @@ func main() {
383384

384385
*with generated cli*
385386
```shell
386-
$ go run example/main.go -h
387+
$ go run main.go -h
387388
NAME:
388389
Example - an example temporal cli
389390
@@ -406,27 +407,27 @@ COMMANDS:
406407
GLOBAL OPTIONS:
407408
--help, -h show help (default: false)
408409
409-
$ go run example/main.go create-foo -d --name test
410+
$ go run main.go create-foo -d --name test
410411
success
411412
workflow id: create-foo/test
412413
run id: 44cacae1-6a13-4b4a-8db7-d29eaafd1499
413414
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
415416
success
416417
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
418419
{
419420
"progress": 5.7,
420421
"status": "FOO_STATUS_CREATING"
421422
}
422423
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
424425
{
425426
"progress": 100,
426427
"status": "FOO_STATUS_READY"
427428
}
428429
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
430431
{
431432
"progress": 100,
432433
"status": "FOO_STATUS_READY"
@@ -629,4 +630,4 @@ The generated code includes resources that are compatible with the Temporal Go S
629630

630631
## License
631632
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

Comments
 (0)