rustlings/.vscode/tasks.json
Jeff Bailey 8e99ca9c0c Add tooling for GitHub Codespaces
With this, a new user can fork Rustlings and start a Github Codespace.  The Container will already be correctly set up with everything needed, and VSCode tasks are set up for starting rustlings.
2025-09-13 21:59:46 +00:00

96 lines
2.4 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "Start Rustlings",
"type": "shell",
"command": "cargo",
"args": [
"run"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new",
"clear": true
},
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "Rustlings: Run Exercise",
"type": "shell",
"command": "cargo",
"args": [
"run",
"--",
"run",
"${input:exerciseName}"
],
"group": "build",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "Rustlings: Get Hint",
"type": "shell",
"command": "cargo",
"args": [
"run",
"--",
"hint",
"${input:exerciseName}"
],
"group": "build",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "Rustlings: Reset Exercise",
"type": "shell",
"command": "cargo",
"args": [
"run",
"--",
"reset",
"${input:exerciseName}"
],
"group": "build",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
}
],
"inputs": [
{
"id": "exerciseName",
"description": "Exercise name (e.g., variables1, functions2)",
"default": "",
"type": "promptString"
}
]
}