From 4195edfcd27551c4a87bed8e02c3f0e5912a3400 Mon Sep 17 00:00:00 2001 From: profitroll Date: Tue, 12 Mar 2024 13:59:23 +0100 Subject: [PATCH] Fixed tasks --- .vscode/tasks.json | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index ec8bf7d..e03d9b7 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -7,7 +7,10 @@ "label": "Build", "type": "shell", "linux": { - "command": "./.venv/bin/python -m build ./PhotosAPI_Client" + "command": "bash", + "args": [ + "./.venv/bin/python -m build ./PhotosAPI_Client" + ] }, "windows": { "command": ".\\.venv\\Scripts\\python -m build .\\PhotosAPI_Client" @@ -22,31 +25,29 @@ "label": "Generate", "type": "shell", "linux": { - "command": "./.venv/bin/openapi-python-client generate --config ./config.yaml --url \"https://photos.end-play.xyz/openapi.json\"" + "command": "bash", + "args": [ + "./.venv/bin/activate && ./.venv/bin/openapi-python-client generate --config ./config.yaml --url \"https://photos.end-play.xyz/openapi.json\"" + ] }, "windows": { - "command": ".\\.venv\\Scripts\\openapi-python-client generate --config .\\config.yaml --url \"https://photos.end-play.xyz/openapi.json\"" + "command": ".\\.venv\\Scripts\\activate.ps1; .\\.venv\\Scripts\\openapi-python-client generate --config .\\config.yaml --url \"https://photos.end-play.xyz/openapi.json\"" }, - "problemMatcher": [], - "group": { - "kind": "build", - "isDefault": true - } + "problemMatcher": [] }, { "label": "Update", "type": "shell", "linux": { - "command": "./.venv/bin/openapi-python-client update --config ./config.yaml --url \"https://photos.end-play.xyz/openapi.json\"" + "command": "bash", + "args": [ + "./.venv/bin/activate && ./.venv/bin/openapi-python-client update --config ./config.yaml --url \"https://photos.end-play.xyz/openapi.json\"" + ] }, "windows": { - "command": ".\\.venv\\Scripts\\openapi-python-client update --config .\\config.yaml --url \"https://photos.end-play.xyz/openapi.json\"" + "command": ".\\.venv\\Scripts\\activate.ps1; .\\.venv\\Scripts\\openapi-python-client update --config .\\config.yaml --url \"https://photos.end-play.xyz/openapi.json\"" }, - "problemMatcher": [], - "group": { - "kind": "build", - "isDefault": true - } + "problemMatcher": [] } ] } \ No newline at end of file