Extend batch file to use run commands
This commit is contained in:
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user