Skip to content

Commit df5cdca

Browse files
committed
Allow selecting backend before running sample
1 parent b9d0260 commit df5cdca

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.vscode/launch.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,25 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
6+
"inputs": [
7+
{
8+
"id": "backend",
9+
"type": "pickString",
10+
"description": "Choose a backend",
11+
"default": "memory",
12+
"options": ["mysql", "sqlite", "redis", "memory"]
13+
}
14+
],
615
"configurations": [
7-
816
{
917
"name": "Current sample",
1018
"type": "go",
1119
"request": "launch",
1220
"mode": "debug",
13-
"program": "${fileDirname}"
21+
"program": "${fileDirname}",
22+
"args": [
23+
"-backend", "${input:backend}",
24+
]
1425
},
1526
{
1627
"name": "Launch simple sample",

0 commit comments

Comments
 (0)