aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/datamaps/main.go
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-07-25 18:43:35 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-07-25 18:43:35 +0100
commit6663dc215c9b8274a947e6055ba337036f0cb772 (patch)
tree42c3899c8c4fd4a194e5fa726926e7dd5c6170e6 /cmd/datamaps/main.go
parent278eef90bffce6066a98a996a1462acd96b21d4e (diff)
improvement
Diffstat (limited to 'cmd/datamaps/main.go')
-rw-r--r--cmd/datamaps/main.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd/datamaps/main.go b/cmd/datamaps/main.go
index b421223..7841e95 100644
--- a/cmd/datamaps/main.go
+++ b/cmd/datamaps/main.go
@@ -7,15 +7,16 @@ import (
"fmt"
"log"
"net/http"
+ "os"
"github.com/yulqen/datamaps-go/pkg/datamaps"
)
func main() {
- // env := datamaps.DetectConfig()
- // if !env {
- // datamaps.SetUp()
- // }
+ dbpc := datamaps.NewDBPathChecker(os.UserConfigDir)
+ if !dbpc.Check() {
+ datamaps.SetUp()
+ }
opts := datamaps.ParseOptions()
switch opts.Command {