From 2f26e0bd0ec63d47425fb1a5faff06cfd33f246c Mon Sep 17 00:00:00 2001 From: Joop Kiefte Date: Thu, 28 Sep 2023 02:44:15 +0100 Subject: Making things more beautiful --- main.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index aca6f64..013ada5 100644 --- a/main.go +++ b/main.go @@ -2,11 +2,11 @@ package main import ( + "bufio" "fmt" "os" "os/exec" "strings" - "bufio" ) func main() { @@ -100,12 +100,9 @@ Running debby with any other arguments will run it as a dolt command.` choice = 0 // Print menu - // List tables sequentially - fmt.Print("Tables: ") - for _, t := range tables { - fmt.Printf(" %s -", t) - } - fmt.Println() + // List tables sequentially + fmt.Println("Tables: ", strings.Join(tables, ", ")) + fmt.Println() fmt.Print("1. Run query ") fmt.Print("2. Edit table ") fmt.Print("3. Execute Dolt command ") -- cgit v1.2.3-70-g09d2