aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAria <me@aria.rip>2023-02-03 15:44:44 +0000
committerAria <me@aria.rip>2023-02-03 15:44:44 +0000
commit8c3b1aee5a253416523de78877ae03c3868cc62c (patch)
treef51e8d0049ad439bea7f4c32c714f4ce29e41e2c /main.go
parenta6c9dba25ad9204ebde302728eb2a75532497f37 (diff)
first version
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index 9656146..c4cb4f2 100644
--- a/main.go
+++ b/main.go
@@ -26,6 +26,10 @@ func main() {
}
func runProgram() error {
+ err := setupDB()
+ if err != nil {
+ return fmt.Errorf("Error connecting to KV store: %s", err)
+ }
model, err := tea.NewProgram(StartSelecting(), tea.WithMouseCellMotion()).Run()
if err != nil {