Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GOFLAGS = -trimpath

BINARY=runware

.PHONY: build build-all windows-amd64 windows-arm64 darwin darwin-arm64 darwin-amd64 linux-amd64 linux-arm64 run test lint clean install snapshot docs go-tidy
.PHONY: build build-all windows-amd64 windows-arm64 darwin darwin-arm64 darwin-amd64 linux-amd64 linux-arm64 run test lint clean install snapshot docs go-tidy generate-serverless

build:
go build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o bin/${BINARY} ./cmd/runware
Expand Down Expand Up @@ -61,3 +61,7 @@ docs:

go-tidy:
go mod tidy && go mod verify

# Regenerate the Serverless API client from api/serverless/openapi.yaml.
generate-serverless:
go tool oapi-codegen -config api/serverless/oapi-codegen.yaml api/serverless/openapi.yaml
8 changes: 8 additions & 0 deletions api/serverless/oapi-codegen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json
package: gen
generate:
models: true
client: true
output: internal/api/serverless/gen/client.gen.go
output-options:
skip-prune: false
Loading