Fixed tasks
This commit is contained in:
parent
d76107222b
commit
4195edfcd2
31
.vscode/tasks.json
vendored
31
.vscode/tasks.json
vendored
@ -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": []
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user