From 38bf0bb675a948354162eb642a3fc7df3eb9af2c Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Wed, 23 Feb 2022 22:07:26 -0500 Subject: cmd/update.go: update to reflect new api --- cmd/update.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'cmd') diff --git a/cmd/update.go b/cmd/update.go index 1c88bc5..0714abe 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -6,7 +6,6 @@ import ( "github.com/spf13/cobra" "github.com/rs/zerolog" "github.com/rs/zerolog/log" - "os" "time" ) @@ -31,13 +30,12 @@ var updateCmd = &cobra.Command{ // custom sync config config := nvdmirror.SyncConfig { Cve11BaseUrl: "https://pmdn.org/nvdmirror", + CpeMatch10BaseUrl: "https://pmdn.org/nvdmirror", + Cpe23DictUrl: "https://pmdn.org/nvdmirror", } - // sync data - if err := nvdmirror.Sync(config, &cache, "stuff"); err != nil { - log.Error().Err(err).Msg("Sync") - os.Exit(-1) - } + // sync data, get changed data + nvdmirror.Sync(config, &cache, "stuff") }, } -- cgit v1.2.3