mirror of
https://github.com/nushell/nushell
synced 2025-01-28 04:45:18 +00:00
9 lines
297 B
Rust
9 lines
297 B
Rust
use crate::commands::command::CommandAction;
|
|
use crate::errors::ShellError;
|
|
use crate::prelude::*;
|
|
|
|
pub fn exit(_args: CommandArgs) -> Result<OutputStream, ShellError> {
|
|
let mut stream = VecDeque::new();
|
|
stream.push_back(ReturnValue::Action(CommandAction::Exit));
|
|
Ok(stream.boxed())
|
|
}
|