oh-my-posh/.vscode/tasks.json

44 lines
1.3 KiB
JSON
Raw Normal View History

{
// 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", "-ldflags", "\"-X 'main.Version=development-$(git --no-pager log -1 --pretty=%h-%s)'\""]
},
{
"type": "shell",
"command": "go",
2021-11-26 03:02:28 -08:00
"label": "devcontainer: rebuild oh-my-posh",
"options": {
"cwd": "${workspaceRoot}/src",
"shell": {
"executable": "bash",
"args": ["-c"]
},
"statusbar": {
"hide": false,
"color": "#22C1D6",
2021-11-26 03:02:28 -08:00
"label": "$(beaker) devcontainer: rebuild oh-my-posh",
"tooltip": "Compiles *oh-my-posh* from this repo while **overwriting** your preinstalled stable release."
}
},
"group": "build",
"problemMatcher": "$go",
"args": ["build", "-v", "-o", "/home/vscode/bin/oh-my-posh", "-ldflags", "\"-X 'main.Version=development-$(git --no-pager log -1 --pretty=%h-%s)'\""]
}
]
}