From fb170b55a216c9ebb2d107215953a7cf938af702 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 13 Nov 2022 11:31:04 +1100 Subject: [PATCH] add some tasks --- .vscode/tasks.json | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..6b6943b12 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,52 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Generate cheatsheet", + "type": "process", + "command": "go run scripts/cheatsheet/main.go " + }, + { + "label": "Bump gocui", + "type": "shell", + "command": "./scripts/bump_gocui.sh" + }, + { + "label": "Run current file integration test", + "type": "shell", + "command": "go run cmd/integration_test/main.go cli ${relativeFile}", + "problemMatcher": [], + "group": { + "kind": "test", + "isDefault": true + } + }, + { + "label": "Run current file integration test (slow)", + "type": "shell", + "command": "go run cmd/integration_test/main.go cli --slow ${relativeFile}", + "problemMatcher": [], + "group": { + "kind": "test", + } + }, + { + "label": "Run current file integration test (sandbox)", + "type": "shell", + "command": "go run cmd/integration_test/main.go cli --sandbox ${relativeFile}", + "problemMatcher": [], + "group": { + "kind": "test", + } + } + ], + "inputs": [ + { + "id": "testname", + "description": "Test name/path (e.g. 'commit/commit'):", + "type": "promptString" + }, + ] +}