diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-01-05 07:30:34 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-01-05 07:30:34 -0500 |
commit | f9c5cb86304748baf0da99126bf75c5a3cd3e773 (patch) | |
tree | 7583e15d3e6b82db02b3815516309fc4bb4ebfb3 /src/pipeline/builtins/command.rs | |
parent | a30174620d6b64f838989a634c265a353b2ab117 (diff) | |
download | nbsh-f9c5cb86304748baf0da99126bf75c5a3cd3e773.tar.gz nbsh-f9c5cb86304748baf0da99126bf75c5a3cd3e773.zip |
and more simplification
Diffstat (limited to 'src/pipeline/builtins/command.rs')
-rw-r--r-- | src/pipeline/builtins/command.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pipeline/builtins/command.rs b/src/pipeline/builtins/command.rs index b69463b..fd5e322 100644 --- a/src/pipeline/builtins/command.rs +++ b/src/pipeline/builtins/command.rs @@ -1,5 +1,4 @@ -use async_std::io::{ReadExt as _, WriteExt as _}; -use std::os::unix::io::{AsRawFd as _, FromRawFd as _, IntoRawFd as _}; +use crate::pipeline::prelude::*; pub struct Command { exe: crate::parse::Exe, @@ -41,7 +40,7 @@ impl Command { self.io.pre_exec(f); } - pub fn spawn(self, env: &crate::Env) -> anyhow::Result<Child> { + pub fn spawn(self, env: &Env) -> anyhow::Result<Child> { let Self { f, exe, io } = self; (f)(exe, env, io) } |