Skip to content

Commit

Permalink
fix(cli): handle exit & quit with semicolon (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Apr 24, 2023
1 parent 6b5a7d6 commit b9003cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ impl Session {
}

pub async fn handle_query(&mut self, is_repl: bool, query: &str) -> Result<bool> {
let query = query.trim_end_matches(';').trim();
if is_repl && (query == "exit" || query == "quit") {
return Ok(true);
}
Expand Down

0 comments on commit b9003cb

Please sign in to comment.