diff options
author | Joop Kiefte <ikojba@gmail.com> | 2023-09-28 02:44:15 +0100 |
---|---|---|
committer | Joop Kiefte <ikojba@gmail.com> | 2023-09-28 02:44:15 +0100 |
commit | 2f26e0bd0ec63d47425fb1a5faff06cfd33f246c (patch) | |
tree | f70ca024ef388296c59e9066e7be40e6f7d30b68 | |
parent | c7d3da71c7b4b77672c7a22a7b7200aab72f028b (diff) |
Making things more beautiful
-rw-r--r-- | main.go | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -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 ") |