diff options
-rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -116,7 +116,11 @@ func Readline() string { // Read a line from stdin reader := bufio.NewReader(os.Stdin) text, _ := reader.ReadString('\n') - return strings.TrimRight(text, "\n") + rtext := strings.TrimRight(text, "\n") + if text == rtext { + return "quit" + } + return rtext } func ExecuteDoltCommand(args ...string) { |