chore(dev): improve update command launch config

- Run without `debug` mode
- Run from workspace folder so it writes to the right path
- Pick `-maintainer` or `-enduser` update mode
This commit is contained in:
Quentin McGaw
2022-09-04 18:40:08 +00:00
parent e59e28152f
commit 7757e8a114

16
.vscode/launch.json vendored
View File

@@ -5,11 +5,11 @@
"name": "Update a VPN provider servers data", "name": "Update a VPN provider servers data",
"type": "go", "type": "go",
"request": "launch", "request": "launch",
"mode": "debug", "cwd": "${workspaceFolder}",
"program": "cmd/gluetun/main.go", "program": "cmd/gluetun/main.go",
"args": [ "args": [
"update", "update",
"-enduser", "${input:updateMode}",
"-providers", "-providers",
"${input:provider}" "${input:provider}"
], ],
@@ -20,6 +20,16 @@
"id": "provider", "id": "provider",
"type": "promptString", "type": "promptString",
"description": "Please enter a provider (or comma separated list of providers)", "description": "Please enter a provider (or comma separated list of providers)",
} },
{
"id": "updateMode",
"type": "pickString",
"description": "Update mode to use",
"options": [
"-maintainer",
"-enduser"
],
"default": "-maintainer"
},
] ]
} }