Support run cmd now

This commit is contained in:
Jaby 2022-09-11 19:53:04 +02:00 committed by Jaby
parent 7befd492cc
commit 387fd25aef
2 changed files with 9 additions and 2 deletions

View File

@ -36,13 +36,13 @@
{ {
"id": "project", "id": "project",
"type": "pickString", "type": "pickString",
"options": ["cdtypes", "psxcdgen", "psxcdread"], "options": ["cdtypes", "cpp_out", "psxcdgen", "psxcdread"],
"description": "project to build" "description": "project to build"
}, },
{ {
"id": "cargo cmd", "id": "cargo cmd",
"type":"pickString", "type":"pickString",
"options": ["build", "check", "clean"], "options": ["build", "run", "check", "clean"],
"default": "build", "default": "build",
"description": "cargo command to run" "description": "cargo command to run"
} }

View File

@ -14,6 +14,13 @@ IF %2 == build (
exit /B %ERRORLEVEL% exit /B %ERRORLEVEL%
) )
IF %2 == run (
echo cargo run %1 --%3
cargo run --%3
exit /B %ERRORLEVEL%
)
IF %2 == check ( IF %2 == check (
echo cargo check %1 --%3 echo cargo check %1 --%3
cargo check --%3 cargo check --%3