-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprojector.json
57 lines (57 loc) · 1.16 KB
/
projector.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Projector's format that's supported by "builtin" loader
// The whole file is just a json array of configuration objects (see README.md for it's specs)
[
{
"name": "My Project",
"command": "go run ${workspaceFolder}/main.go",
"dependencies": [
"generate-stuff-id"
],
"type": "delve",
"request": "launch",
"program": "${workspaceFolder}/main.go",
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"args": [
"--argument",
"1234"
],
"env": {
"SOME_BOOL": "true"
},
"dlvToolPath": "/usr/bin/dlv",
"showLog": false
},
{
"id": "generate-stuff-id",
"name": "Generate Stuff",
"command": "go generate",
"args": [
"${workspaceFolder}/tools.go"
]
},
{
"name": "Ls",
"command": "ls",
"args": [
"-a",
"-l",
"${workspaceFolder}/"
]
},
{
"name": "Postgres DB",
"databases": [
{
"name": "my-db",
"url": "postgres://postgres:mypassword@localhost:5432/my-db"
}
],
"queries": {
"postgresql": {
"List": "select * from {table} order by id asc"
}
}
}
]
// vim: ft=jsonc