Add update feature to cargo for easier rebuild
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
{
|
||||
"id": "cargo cmd",
|
||||
"type":"pickString",
|
||||
"options": ["build", "check", "clean", "run"],
|
||||
"options": ["build", "check", "update", "clean", "run"],
|
||||
"default": "build",
|
||||
"description": "cargo command to run"
|
||||
},
|
||||
|
@@ -53,4 +53,11 @@ IF %2 == clean (
|
||||
exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
IF %2 == update (
|
||||
echo cargo update %1
|
||||
%wsl%cargo update
|
||||
|
||||
exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
echo "Unkown cargo command "%2" for project "%1"
|
Reference in New Issue
Block a user