Add update feature to cargo for easier rebuild

This commit is contained in:
Björn Gaier 2022-12-16 21:13:34 +01:00
parent 5a4dbc170e
commit df44294e17
3 changed files with 9 additions and 1 deletions

View File

@ -9,6 +9,7 @@ IF NOT "%~1" == "" (
mkdir bin\
cd src\Tools\
call build_all.bat update
call build_all.bat %build_type%
cd ..\Library\

View File

@ -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"
},

View File

@ -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"