oh-my-posh/.vscode/tasks.json
Yehor Borkov 9ecd7c09a4
feat(palette): a map of named color values
introducing a map of named standard color
values that can be referenced in theme segments
2021-11-22 15:25:56 +01:00

75 lines
2 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"cwd": "${workspaceRoot}",
"echoCommand": true,
"type": "shell",
"tasks": [
{
"type": "shell",
"command": "go",
"label": "build omp",
"options": { "cwd": "${workspaceRoot}/src" },
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$go",
"args": ["build", "-v"]
},
{
"type": "shell",
"command": "go",
"label": "devcontainer: build omp",
"options": {
"cwd": "${workspaceRoot}/src",
"shell": {
"executable": "bash",
"args": ["-c"]
},
"statusbar": {
"hide": false,
"color": "#22C1D6",
"label": "$(beaker) devcontainer: build omp",
"tooltip": "Compiles *oh-my-posh* from this repo while **overwriting** your preinstalled stable release."
}
},
"group": "build",
"problemMatcher": "$go",
"args": ["build", "-v", "-o", "`readlink", "/usr/bin/oh-my-posh`"]
},
{
"label": "golangci-lint - docker",
"type": "shell",
"command": "docker",
"group": "build",
"presentation": {
"reveal": "always",
"focus": false,
"echo": true,
"showReuseMessage": false,
"panel": "dedicated",
"clear": false
},
"problemMatcher": {
"base": "$go",
"fileLocation": ["relative", "${workspaceFolder}/src"]
},
"args": [
"run", "--rm", "-v", "${workspaceFolder}/src:/app", "-w", "/app",
"golangci/golangci-lint:${input:golangci-lint-version}",
"golangci-lint", "run", "-v"
]
}
],
"inputs": [
{
"id": "golangci-lint-version",
"description": "Version of the golangci-lint Docker container to use in lint task.",
"type": "promptString",
"default": "v1.43.0"
}
]
}