Add a deep flag to scan

This commit is contained in:
kota kanbe
2017-07-30 09:41:40 +09:00
parent 4379b8bacf
commit 8b6a283114
5 changed files with 30 additions and 36 deletions

View File

@@ -43,16 +43,9 @@ func formatScanSummary(rs ...models.ScanResult) string {
for _, r := range rs {
var cols []interface{}
if len(r.Errors) == 0 {
var cves string
if config.Conf.PackageListOnly {
cves = fmt.Sprintf("- CVEs")
} else {
cves = fmt.Sprintf("%d CVEs", len(r.ScannedCves))
}
cols = []interface{}{
r.FormatServerName(),
fmt.Sprintf("%s%s", r.Family, r.Release),
cves,
r.Packages.FormatUpdatablePacksSummary(),
}
} else {