From bde5adb96e699a6ef5d7c473b0bd2c29f305c663 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 27 Jul 2020 07:58:33 +0100 Subject: a lot of working building the new import command in main --- cmd/datamaps/main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd') 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) -- cgit v1.2.3