From cbaa1b4ddafd7eb6822b07d311d42c3cc03231ac Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 19 Mar 2022 00:18:06 -0400 Subject: cmd/update.go: print sync updates to stdout --- cmd/update.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd/update.go') 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) }, } -- cgit v1.2.3