mirror of
https://github.com/safedep/vet.git
synced 2025-12-10 12:07:30 -06:00
Merge pull request #59 from tarunsamanta2k20/tarunsamanta/#54
Added feature for showing Ecosystem name in the table along with othe…
This commit is contained in:
commit
3ba2a456d5
@ -234,12 +234,11 @@ func (r *summaryReporter) renderRemediationAdvice() {
|
||||
|
||||
fmt.Println(text.Bold.Sprint("Consider upgrading the following libraries for maximum impact:"))
|
||||
fmt.Println()
|
||||
|
||||
tbl := table.NewWriter()
|
||||
tbl.SetOutputMirror(os.Stdout)
|
||||
tbl.SetStyle(table.StyleLight)
|
||||
|
||||
tbl.AppendHeader(table.Row{"Package", "Update To", "Impact"})
|
||||
tbl.AppendHeader(table.Row{"Package", "Ecosystem", "Update To", "Impact"})
|
||||
for idx, sp := range sortedPackages {
|
||||
if idx >= summaryReportMaxUpgradeAdvice {
|
||||
break
|
||||
@ -249,8 +248,10 @@ func (r *summaryReporter) renderRemediationAdvice() {
|
||||
|
||||
tbl.AppendRow(table.Row{
|
||||
r.packageNameForRemediationAdvice(sp.pkg),
|
||||
sp.pkg.Manifest.Ecosystem,
|
||||
utils.SafelyGetValue(insight.PackageCurrentVersion),
|
||||
sp.score,
|
||||
|
||||
})
|
||||
|
||||
tagText := ""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user