Support run cmd now
This commit is contained in:
parent
656241829d
commit
88b4a69865
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue