aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-03-19 00:18:06 -0400
committerPaul Duncan <pabs@pablotron.org>2022-03-19 00:18:06 -0400
commitcbaa1b4ddafd7eb6822b07d311d42c3cc03231ac (patch)
tree523096666fc7ce271d8d2a7afbf9e47aca47fc21
parent6d113c1ac4001ecb97ff430a264b7232324b0e26 (diff)
downloadcvez-cbaa1b4ddafd7eb6822b07d311d42c3cc03231ac.tar.bz2
cvez-cbaa1b4ddafd7eb6822b07d311d42c3cc03231ac.zip
cmd/update.go: print sync updates to stdout
-rw-r--r--cmd/update.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/update.go b/cmd/update.go
index f8b2219..b6f2882 100644
--- a/cmd/update.go
+++ b/cmd/update.go
@@ -26,7 +26,8 @@ var updateCmd = &cobra.Command{
cache, cacheDir := getCache()
defer cache.Close()
- // sync data, get changed data
- nvdmirror.Sync(config, &cache, cacheDir)
+ // sync data, get updates
+ updates := nvdmirror.Sync(config, &cache, cacheDir)
+ jsonEncode(updates)
},
}