From 7757e8a1147c6b163354d393cbf714feda75e382 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Sun, 4 Sep 2022 18:40:08 +0000 Subject: [PATCH] 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 --- .vscode/launch.json | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 8719861c..598e4c5d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,11 +5,11 @@ "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}" ], @@ -20,6 +20,16 @@ "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