Skip to content

Commit

Permalink
feat: add 'get-openapi-spec' to Taskfile (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
rriski authored Feb 8, 2024
1 parent a3c5545 commit 75cfba4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ tasks:
cmds:
- find . -type f -name '*.go' -exec sed -zi 's/(?<== `\s+)"\n\+\t"/"\n"/g' {} +
- goimports -local "github.com/aiven/go-client-codegen" -w .
get-openapi-spec:
cmds:
- curl -s -o openapi.json https://api.aiven.io/doc/openapi.json
go-generate:
cmds:
- rm -rf {{.GEN_OUT_DIR}}
- GEN_OUT_DIR={{.GEN_OUT_DIR}} go run -tags=generator ./generator/...
generate:
cmds:
- task: get-openapi-spec
- task: go-generate
- task: fmt-imports
test:
Expand Down

0 comments on commit 75cfba4

Please sign in to comment.