forked from temporalio/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 672 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.PHONY: all gen gen-docs build
all: gen build
gen: internal/temporalcli/commands.gen.go cliext/flags.gen.go
internal/temporalcli/commands.gen.go: internal/temporalcli/commands.yaml
go run ./cmd/gen-commands \
-input internal/temporalcli/commands.yaml \
-pkg temporalcli \
-context "*CommandContext" > $@
cliext/flags.gen.go: cliext/option-sets.yaml
go run ./cmd/gen-commands \
-input cliext/option-sets.yaml \
-pkg cliext > $@
gen-docs: internal/temporalcli/commands.yaml cliext/option-sets.yaml
go run ./cmd/gen-docs \
-input internal/temporalcli/commands.yaml \
-input cliext/option-sets.yaml \
-output dist/docs
build:
go build ./cmd/temporal