From ba65ae962c43eb63c0d1a91247d1210bae5ce46f Mon Sep 17 00:00:00 2001 From: Timo Riski Date: Thu, 8 Feb 2024 10:45:33 +0200 Subject: [PATCH] feat: add 'get-openapi-spec' to Taskfile --- Taskfile.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index 8bdd7a0..5feea90 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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: