nushell/src/commands/exit.rs

10 lines
297 B
Rust
Raw Normal View History

2019-06-13 23:47:25 +02:00
use crate::commands::command::CommandAction;
use crate::errors::ShellError;
use crate::prelude::*;
2019-06-15 19:52:55 +02:00
pub fn exit(_args: CommandArgs) -> Result<OutputStream, ShellError> {
2019-06-13 23:47:25 +02:00
let mut stream = VecDeque::new();
stream.push_back(ReturnValue::Action(CommandAction::Exit));
Ok(stream.boxed())
}