mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 06:48:17 +02:00
Add exit
This commit is contained in:
@ -217,8 +217,6 @@ impl std::ops::Try for LineResult {
|
||||
|
||||
async fn process_line(readline: Result<String, ReadlineError>, ctx: &mut Context) -> LineResult {
|
||||
match &readline {
|
||||
Ok(line) if line.trim() == "exit" => LineResult::Break,
|
||||
|
||||
Ok(line) if line.trim() == "" => LineResult::Success(line.clone()),
|
||||
|
||||
Ok(line) => {
|
||||
|
Reference in New Issue
Block a user