Extend batch file to use run commands

This commit is contained in:
Jaby
2022-11-11 15:54:35 +01:00
parent 927d67fc5b
commit 74253e40e3
3 changed files with 36 additions and 2 deletions

View File

@@ -22,6 +22,11 @@
"command": "./run_cargo ${input:project} ${input:cargo cmd} ${input:build cfg} ${input:cargo target}",
"group": {
"kind": "build",
},
"options": {
"env": {
"CARGO_RUN_ARGS": "${input:cargo run args}"
}
}
},
{
@@ -69,6 +74,13 @@
"type": "pickString",
"options": ["windows", "linux"],
"description": "The target for the tool to build"
},
{
"id": "cargo run args",
"type": "pickString",
"options": ["", "--help"],
"default": "",
"description": "Argument options to pass to cargo run"
}
]
}