Add makefile and vscode tasks

This commit is contained in:
2026-01-07 07:37:59 +01:00
parent 997b165890
commit 950e488190
5 changed files with 122 additions and 4 deletions

45
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,45 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug server (default)",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"cwd": "${workspaceFolder}",
"args": [],
"console": "integratedTerminal"
},
{
"name": "Debug server (port 9000)",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"cwd": "${workspaceFolder}",
"args": ["-listen", "127.0.0.1:9000"],
"console": "integratedTerminal"
},
{
"name": "Debug install (dry-run)",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"cwd": "${workspaceFolder}",
"args": ["install", "-dry-run"],
"console": "integratedTerminal"
},
{
"name": "Debug uninstall (dry-run)",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"cwd": "${workspaceFolder}",
"args": ["uninstall", "-dry-run"],
"console": "integratedTerminal"
}
]
}

19
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,19 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "make",
"args": ["build"],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "shared"
}
}
]
}