Add update feature to cargo for easier rebuild

This commit is contained in:
2022-12-16 21:13:34 +01:00
parent d470e716fd
commit ec96ace44f
3 changed files with 9 additions and 1 deletions

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"