Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PERE Alexandre
orchestra
Commits
7859d692
Commit
7859d692
authored
Dec 03, 2019
by
Alexandre Pere
Browse files
Fixes bug in batch
parent
aa15ed9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
runaway-cli/src/subcommands/batch.rs
View file @
7859d692
...
...
@@ -277,9 +277,12 @@ fn extract_args_iter(matches: &clap::ArgMatches) -> Result<Box<dyn std::iter::It
.map
(|
l
|
misc
::
expand_template_string
(
&
l
)
.into_iter
())
.flatten
()))
}
else
{
let
content
=
matches
.value_of
(
"ARGUMENTS"
)
.unwrap
();
debug!
(
"Arguments tempolate found: {}"
,
content
);
Ok
(
Box
::
new
(
misc
::
expand_template_string
(
content
)
.into_iter
()))
let
content
=
match
matches
.values_of
(
"ARGUMENTS"
){
Some
(
it
)
=>
it
.fold
(
String
::
new
(),
|
acc
,
arg
|
format!
(
"{} {}"
,
acc
,
arg
)),
None
=>
""
.to_owned
()
};
debug!
(
"Arguments template found: {}"
,
content
);
Ok
(
Box
::
new
(
misc
::
expand_template_string
(
&
content
)
.into_iter
()))
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment