From 75cfba4093858d84841aa96f5a3a67393b736ce9 Mon Sep 17 00:00:00 2001 From: rriski Date: Thu, 8 Feb 2024 09:33:07 +0000 Subject: [PATCH] feat: add 'get-openapi-spec' to Taskfile (#5) --- 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: