-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathtasks.json
55 lines (55 loc) · 1.6 KB
/
tasks.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
//Author : Mehedi Hasan Shifat
//data:Wed 16 Feb 2022 02:02:56 PM +06
//Task:shortcut to run a go file which will take input and show output of the programme automatically with programme runtime status such as memory consume and execution time
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile and run Go program",
"type": "shell",
"command": "",
"args": [
"go",
"build",
"${relativeFile}",
"&&",
"timeout",
"10",
"/usr/bin/time",
"-v",
"--output",
"sys.txt",
"./${fileBasenameNoExtension}",
"<",
"input.txt",
">",
"output.txt",
"&&",
"rm",
"${fileBasenameNoExtension}"
],
"presentation": {
"reveal": "silent"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"owner": "go",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
]
}