Support run cmd now
This commit is contained in:
parent
e97c805f5a
commit
94ebe832be
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue