nushell/src/commands/command.rs

11 lines
217 B
Rust
Raw Normal View History

2019-05-10 18:59:12 +02:00
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>;
}