nushell/src/commands/command.rs

12 lines
244 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,
2019-05-11 09:00:33 +02:00
args: Vec<String>,
2019-05-10 18:59:12 +02:00
host: &dyn crate::Host,
env: &mut crate::Environment,
) -> Result<Value, ShellError>;
}