aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-23 22:07:26 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-23 22:07:26 -0500
commit38bf0bb675a948354162eb642a3fc7df3eb9af2c (patch)
treec403515951bccb8e27956bc1bf3154b561fcc667 /cmd
parentfac967e3a0ac4d999a58d889e795a12fa9ee96e0 (diff)
downloadcvez-38bf0bb675a948354162eb642a3fc7df3eb9af2c.tar.bz2
cvez-38bf0bb675a948354162eb642a3fc7df3eb9af2c.zip
cmd/update.go: update to reflect new api
Diffstat (limited to 'cmd')
-rw-r--r--cmd/update.go10
1 files changed, 4 insertions, 6 deletions
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")
},
}