aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/datamaps
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-07-27 07:58:33 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-07-27 07:58:33 +0100
commitbde5adb96e699a6ef5d7c473b0bd2c29f305c663 (patch)
tree2c5b6743b8ace9dd170c0ddd05015412b0e16c39 /cmd/datamaps
parent438baa868bdf5f339d516784c054c766087f907f (diff)
a lot of working building the new import command in main
Diffstat (limited to 'cmd/datamaps')
-rw-r--r--cmd/datamaps/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/datamaps/main.go b/cmd/datamaps/main.go
index 5360def..9a5968a 100644
--- a/cmd/datamaps/main.go
+++ b/cmd/datamaps/main.go
@@ -19,6 +19,10 @@ func main() {
opts := datamaps.ParseOptions()
switch opts.Command {
+ case "import":
+ if err := datamaps.ImportToDB(opts); err != nil {
+ log.Fatal(err)
+ }
case "datamap":
if err := datamaps.DatamapToDB(opts); err != nil {
log.Fatal(err)