mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-22 03:22:30 +00:00
cli_run: support examples with more than one path argument
This commit is contained in:
parent
5d6037d888
commit
1a8419e9e6
2 changed files with 84 additions and 95 deletions
|
@ -164,7 +164,7 @@ where
|
|||
pub fn run_cmd<'a, I: IntoIterator<Item = &'a str>>(
|
||||
cmd_name: &str,
|
||||
stdin_vals: I,
|
||||
args: &[&str],
|
||||
args: &[String],
|
||||
) -> Out {
|
||||
let mut cmd = Command::new(cmd_name);
|
||||
|
||||
|
@ -202,7 +202,7 @@ pub fn run_cmd<'a, I: IntoIterator<Item = &'a str>>(
|
|||
|
||||
pub fn run_with_valgrind<'a, I: IntoIterator<Item = &'a str>>(
|
||||
stdin_vals: I,
|
||||
args: &[&str],
|
||||
args: &[String],
|
||||
) -> (Out, String) {
|
||||
//TODO: figure out if there is a better way to get the valgrind executable.
|
||||
let mut cmd = Command::new("valgrind");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue