nushell/src/commands/command.rs
2019-05-10 09:59:12 -07:00

11 lines
217 B
Rust

use crate::errors::ShellError;
use crate::object::Value;
pub trait Command {
fn run(
&mut self,
host: &dyn crate::Host,
env: &mut crate::Environment,
) -> Result<Value, ShellError>;
}