aboutsummaryrefslogtreecommitdiffstats
path: root/src/repl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/repl.rs')
-rw-r--r--src/repl.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/repl.rs b/src/repl.rs
index 30d852e..2df42a8 100644
--- a/src/repl.rs
+++ b/src/repl.rs
@@ -24,8 +24,11 @@ pub fn repl() {
}
let repl = read().and_then(|line| {
- eprint!("running '{}'\r\n", line);
eval(&line).fold(None, |acc, event| match event {
+ crate::eval::CommandEvent::CommandStart(cmd, args) => {
+ eprint!("running '{} {:?}'\r\n", cmd, args);
+ futures::future::ok(acc)
+ }
crate::eval::CommandEvent::Output(out) => match print(&out) {
Ok(()) => futures::future::ok(acc),
Err(e) => futures::future::err(e),