Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 853 Bytes

CONTRIBUTING.md

File metadata and controls

29 lines (16 loc) · 853 Bytes

Contributing

Building

With the latest go version installed, simply run the following:

go build ./cmd/temporal

Testing

Uses normal go test, e.g.:

go test ./...

See other tests for how to leverage things like the command harness and dev server suite.

Example to run a single test case:

go test ./... -run TestSharedServerSuite/TestOperator_SearchAttribute

Adding/updating commands

First, update commands.md following the rules in that file. Then to regenerate the commands.gen.go file from code, simply run:

go run ./temporalcli/internal/cmd/gen-commands

This will expect every non-parent command to have a run method, so for new commands developers will have to implement run on the new command in a separate file before it will compile.