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
"name": "Update a VPN provider servers data",
"type": "go",
"request": "launch",
- "mode": "debug",
+ "cwd": "${workspaceFolder}",
"program": "cmd/gluetun/main.go",
"args": [
"update",
- "-enduser",
+ "${input:updateMode}",
"-providers",
"${input:provider}"
],
"id": "provider",
"type": "promptString",
"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"
+ },
]
}
\ No newline at end of file
