File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9292 }
9393 },
9494 {
95- "label" : " π€ Create client" ,
95+ "label" : " π€ Build client" ,
9696 "type" : " shell" ,
9797 "command" : " bash" ,
9898 "args" : [
99- " scripts/built_client .sh" ,
99+ " scripts/build_client .sh" ,
100100 ],
101- "options" : {
102- "cwd" : " ${workspaceFolder}/backend"
103- },
104101 "problemMatcher" : [],
105102 "group" : {
106103 "kind" : " build" ,
Load diff This file was deleted.
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -euo pipefail
3- # Usage: scripts/built_client .sh
3+ # Usage: scripts/build_client .sh
44
5+ # Remove a tmp file and remove on exit
56TMP_FILE=" $( mktemp) "
6-
7- # Download openapi.json
8- wget ' http://localhost:8000/openapi.json' -O " ${TMP_FILE} "
9-
10- # Remove tmp file on exit
117trap ' rm -f "${TMP_FILE}"' EXIT
128
139# Convert openapi.json
14- poetry run scripts/convert_openapi.py " ${TMP_FILE} "
10+ cd " backend"
11+ POSTGRES_PASSWORD=dummy poetry run python -m kayman.openapi " ${TMP_FILE} "
1512
1613# Generate client
1714cd " ../frontend"
You canβt perform that action at this time.
0 commit comments