summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-02-27 18:03:31 -0500
committerJesse Luehrs <doy@tozt.net>2022-02-27 18:03:31 -0500
commit7d406ef5017311397d25c2a238aea3e0d9e8946b (patch)
treedffa669a652e5f5389e0d92c067557d6a81be1e7 /src
parent25c8b77ba569468cddfae45f069f1c58170da475 (diff)
downloadnbsh-7d406ef5017311397d25c2a238aea3e0d9e8946b.tar.gz
nbsh-7d406ef5017311397d25c2a238aea3e0d9e8946b.zip
formatting
Diffstat (limited to 'src')
-rw-r--r--src/runner/command.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runner/command.rs b/src/runner/command.rs
index b0120fc..4b21199 100644
--- a/src/runner/command.rs
+++ b/src/runner/command.rs
@@ -8,6 +8,7 @@ pub struct Command {
Box<dyn FnMut() -> std::io::Result<()> + Send + Sync + 'static>,
>,
}
+
impl Command {
pub fn new(exe: crate::parse::Exe, io: super::builtins::Io) -> Self {
let exe_path = exe.exe().to_path_buf();