Merge branch 'main' of ssh://watsonlabs.net:3122/watsonb8/crossnokaye-interview-assignment
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,7 +13,7 @@
|
||||
*.test
|
||||
bin
|
||||
**/cmd
|
||||
**/gen
|
||||
services/**/gen
|
||||
api-cli
|
||||
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
|
14
scripts/gen
Executable file
14
scripts/gen
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
GIT_ROOT=$(git rev-parse --show-toplevel)
|
||||
pushd ${GIT_ROOT}
|
||||
|
||||
echo "Generating Goa code..."
|
||||
|
||||
for svc in front character item inventory; do
|
||||
goa gen crossnokaye-interview-assignment/services/${svc}/design -o services/${svc}
|
||||
done
|
||||
|
||||
popd
|
Reference in New Issue
Block a user