diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-07-25 18:43:35 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-07-25 18:43:35 +0100 |
commit | 6663dc215c9b8274a947e6055ba337036f0cb772 (patch) | |
tree | 42c3899c8c4fd4a194e5fa726926e7dd5c6170e6 /cmd | |
parent | 278eef90bffce6066a98a996a1462acd96b21d4e (diff) |
improvement
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/datamaps/main.go | 9 |
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 { |