Skip to content

Commit

Permalink
Merge pull request #3 from saasus-platform/feature/make-generate-dire…
Browse files Browse the repository at this point in the history
…ctory

generate.shでディレクトリを作成する
  • Loading branch information
tsukamototks authored Nov 18, 2023
2 parents e30e855 + 02dbd3c commit 7c4e55e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ fi
PACKAGE_NAME=$1
FILE_NAME=$2

mkdir -p generated/${PACKAGE_NAME}api

oapi-codegen -generate types -package "${PACKAGE_NAME}api" "$FILE_NAME" > "generated/${PACKAGE_NAME}api/types.gen.go"
oapi-codegen -generate client -package "${PACKAGE_NAME}api" "$FILE_NAME" > "generated/${PACKAGE_NAME}api/client.gen.go"

0 comments on commit 7c4e55e

Please sign in to comment.