-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d0b150
commit 64fa541
Showing
281 changed files
with
13,654 additions
and
42,138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,18 +11,21 @@ test: | |
|
||
GOPATH := $(shell go env GOPATH) | ||
|
||
$(GOPATH)/bin/swagger: | ||
go install github.com/go-swagger/go-swagger/cmd/[email protected] | ||
$(GOPATH)/bin/oapi-codegen: | ||
go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest | ||
|
||
swagger/public.swagger.json: $(GOPATH)/bin/swagger | ||
swagger/openapi.yaml: $(GOPATH)/bin/oapi-codegen | ||
|
||
internal/client internal/models: swagger/public.swagger.json | ||
@swagger generate client -f swagger/public.swagger.json -t internal | ||
internal/compute/client.gen.go: swagger/openapi.yaml | ||
@oapi-codegen -generate client -o internal/compute/client.gen.go -package compute swagger/openapi.yaml | ||
|
||
internal/compute/types.gen.go: swagger/openapi.yaml | ||
@oapi-codegen -generate types -o internal/compute/types.gen.go -package compute swagger/openapi.yaml | ||
|
||
docs: $(wildcard examples/*) | ||
@go generate ./... | ||
|
||
codegen: internal/client internal/models docs | ||
codegen: docs internal/compute/client.gen.go | ||
|
||
clean: | ||
@rm -rf docs internal/client internal/models | ||
@rm -rf docs internal/compute/client.gen.go |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.