File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -eou pipefail
3-
3+ target_env=" dev"
4+ pwd
45echo " Running FOAS CLI versions command"
5- foascli versions -s openapi-foas.json -o ./openapi/v2/versions.json --env " ${target_env:? } "
6+ /Users/bianca.vianadeaguiar/workplace/openapi/tools/cli/bin/ foascli versions -s openapi-foas.json -o ./openapi/v2/versions.json --env " ${target_env:? } "
67
78echo " Running FOAS CLI split command with the following --env=${target_env:? } and -o=./openapi/v2/openapi.json"
89
9- foascli split -s openapi-foas.json --env " ${target_env:? } " -o ./openapi/v2/openapi.json
10+ /Users/bianca.vianadeaguiar/workplace/openapi/tools/cli/bin/ foascli split -s openapi-foas.json --env " ${target_env:? } " -o ./openapi/v2/openapi.json
1011mv -f " openapi-foas.json" " ./openapi/v2.json"
1112
12- foascli split -s openapi-foas.yaml --env " ${target_env:? } " -o ./openapi/v2/openapi.yaml
13+ /Users/bianca.vianadeaguiar/workplace/openapi/tools/cli/bin/ foascli split -s openapi-foas.yaml --env " ${target_env:? } " -o ./openapi/v2/openapi.yaml
1314mv -f " openapi-foas.yaml" " ./openapi/v2.yaml"
15+
16+ echo " Moving preview files to preview folder"
17+ find ./openapi/v2 -type f -name " *preview*" -exec mv -f {} ./openapi/preview/ \;
You can’t perform that action at this time.
0 commit comments