Skip to content

Commit

Permalink
Cherry-pick commit b4d6792 to make client generation easier
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino authored and Annika Wickert committed Sep 16, 2020
1 parent 9dc1ea8 commit 8b28441
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
.gobincache/
8 changes: 6 additions & 2 deletions Makefile
@@ -1,5 +1,9 @@
generate:
swagger generate client --target=./netbox --spec=./swagger.json --copyright-file=./copyright_header.txt
deps:
go mod download
GO111MODULE=off go get -u github.com/myitcv/gobin

generate: deps
gobin -m -run github.com/go-swagger/go-swagger/cmd/swagger generate client --copyright-file=copyright_header.txt

clean:
rm -rf netbox/client netbox/models
Expand Down
5 changes: 5 additions & 0 deletions tools.go
@@ -0,0 +1,5 @@
package tools

import (
_ "github.com/go-swagger/go-swagger"
)

0 comments on commit 8b28441

Please sign in to comment.