diff --git a/internal/cmd/printtable/report_table.go b/internal/cmd/printtable/report_table.go index 63a97858..9f3c4f74 100644 --- a/internal/cmd/printtable/report_table.go +++ b/internal/cmd/printtable/report_table.go @@ -3,9 +3,12 @@ package printtable import ( "fmt" "sort" + "strings" "github.com/cerberauth/vulnapi/report" "github.com/olekukonko/tablewriter" + "golang.org/x/text/cases" + "golang.org/x/text/language" ) type ScanIssueReport struct { @@ -85,11 +88,12 @@ func DisplayReportSummaryTable(r *report.Reporter) { tableColors[0] = tablewriter.Colors{tablewriter.Bold} tableColors[1] = tablewriter.Colors{tablewriter.Bold} + statusCaser := cases.Title(language.English) for _, status := range report.IssueReportStatuses { scansNumber := len(r.GetReportsByIssueStatus(status)) row := []string{ - status.String(), + statusCaser.String(strings.ToLower(status.String())), fmt.Sprintf("%d", scansNumber), } diff --git a/internal/cmd/printtable/wellknown_paths_table.go b/internal/cmd/printtable/wellknown_paths_table.go index 6107b48d..b7bdc12e 100644 --- a/internal/cmd/printtable/wellknown_paths_table.go +++ b/internal/cmd/printtable/wellknown_paths_table.go @@ -29,7 +29,6 @@ func WellKnownPathsScanReport(reporter *report.Reporter) { } if openapiURL == "" && graphqlURL == "" { - fmt.Println("No well-known paths were found.") return }