Skip to content

Commit

Permalink
Add quit/exit command (eatonphil#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
krischerven authored Apr 14, 2020
1 parent afff93d commit 2045f36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ repl:
fmt.Println("Error while reading line:", err)
continue repl
}

if line == "quit" || line == "exit" {
break
}
ast, err := gosql.Parse(line)
if err != nil {
fmt.Println("Error while parsing:", err)
Expand Down

0 comments on commit 2045f36

Please sign in to comment.