diff options
author | Joop Kiefte <ikojba@gmail.com> | 2023-09-28 03:50:21 +0100 |
---|---|---|
committer | Joop Kiefte <ikojba@gmail.com> | 2023-09-28 03:50:21 +0100 |
commit | 0ed7c1a7a9c149f388caa259b9c327651cf70d24 (patch) | |
tree | ffac87f2a1788ee8993421f1bef8ec1cbfa26b2b | |
parent | 911bc140934718dbcc1d18225ce9fd8085061a60 (diff) |
Correct position of tablename refreshing
-rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,6 +16,7 @@ func main() { var args []string var noninteractive bool var err error + var tables = ReadTableNames() if len(os.Args) > 1 { noninteractive = true @@ -51,7 +52,6 @@ Running debby with any other arguments will run it as a dolt command.` // Menu loop. 1. Run query 2. Edit a table 3. Execute Dolt command 4. Exit for { - tables := ReadTableNames() // Execute choice switch choice { @@ -79,7 +79,7 @@ Running debby with any other arguments will run it as a dolt command.` // Exit return } - + tables = ReadTableNames() // Refresh table names // If noninteractive, exit if noninteractive { return |