aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 31410fa..7f9e0af 100644
--- a/main.go
+++ b/main.go
@@ -112,7 +112,7 @@ func Readline() string {
// Read a line from stdin
reader := bufio.NewReader(os.Stdin)
text, _ := reader.ReadString('\n')
- return text[:len(text)-1]
+ return strings.TrimRight(text, "\n")
}
func ExecuteDoltCommand(args ...string) {