Fixed tasks

This commit is contained in:
Profitroll 2024-03-12 13:59:23 +01:00
parent d76107222b
commit 4195edfcd2
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2

31
.vscode/tasks.json vendored
View File

@ -7,7 +7,10 @@
"label": "Build", "label": "Build",
"type": "shell", "type": "shell",
"linux": { "linux": {
"command": "./.venv/bin/python -m build ./PhotosAPI_Client" "command": "bash",
"args": [
"./.venv/bin/python -m build ./PhotosAPI_Client"
]
}, },
"windows": { "windows": {
"command": ".\\.venv\\Scripts\\python -m build .\\PhotosAPI_Client" "command": ".\\.venv\\Scripts\\python -m build .\\PhotosAPI_Client"
@ -22,31 +25,29 @@
"label": "Generate", "label": "Generate",
"type": "shell", "type": "shell",
"linux": { "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": { "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": [], "problemMatcher": []
"group": {
"kind": "build",
"isDefault": true
}
}, },
{ {
"label": "Update", "label": "Update",
"type": "shell", "type": "shell",
"linux": { "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": { "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": [], "problemMatcher": []
"group": {
"kind": "build",
"isDefault": true
}
} }
] ]
} }