Support run cmd now

This commit is contained in:
jaby 2022-09-11 19:53:04 +02:00
parent 1eacebb014
commit 6689972252
2 changed files with 9 additions and 2 deletions

View File

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

View File

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