diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-07-27 07:58:33 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-07-27 07:58:33 +0100 |
commit | bde5adb96e699a6ef5d7c473b0bd2c29f305c663 (patch) | |
tree | 2c5b6743b8ace9dd170c0ddd05015412b0e16c39 /cmd/datamaps | |
parent | 438baa868bdf5f339d516784c054c766087f907f (diff) |
a lot of working building the new import command in main
Diffstat (limited to 'cmd/datamaps')
-rw-r--r-- | cmd/datamaps/main.go | 4 |
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) |