summaryrefslogtreecommitdiffstats
path: root/examples/containerexec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/containerexec.rs')
-rw-r--r--examples/containerexec.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/containerexec.rs b/examples/containerexec.rs
index b41d1ac..e10d245 100644
--- a/examples/containerexec.rs
+++ b/examples/containerexec.rs
@@ -6,7 +6,11 @@ use std::env;
fn main() {
let docker = Docker::new();
let options = ExecContainerOptions::builder()
- .cmd(vec!["bash", "-c", "echo -n \"echo VAR=$VAR on stdout\"; echo -n \"echo VAR=$VAR on stderr\" >&2"])
+ .cmd(vec![
+ "bash",
+ "-c",
+ "echo -n \"echo VAR=$VAR on stdout\"; echo -n \"echo VAR=$VAR on stderr\" >&2",
+ ])
.env(vec!["VAR=value"])
.attach_stdout(true)
.attach_stderr(true)