aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-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 {