Skip to content

Commit 2bb82eb

Browse files
author
Valentin Rejaunier
committed
fix(cli): PRD-814 remove profile coverage column (MR !21909)
https://gitlab.com/escape.tech/product/-/merge_requests/21909
2 parents bf1fe89 + ec0e022 commit 2bb82eb

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

pkg/cli/cmd/profiles.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,12 @@ profiles only (REST, GraphQL, WEBAPP). Use --all to include pentest profiles.`,
123123
allProfiles = append(allProfiles, profiles...)
124124
}
125125
out.Table(allProfiles, func() []string {
126-
result := []string{"ID\tCREATED AT\tASSET TYPE\tINITIATORS\tSCORE\tCOVERAGE\tOPEN ISSUES\tLAST SCAN STATUS\tNAME"}
126+
result := []string{"ID\tCREATED AT\tASSET TYPE\tINITIATORS\tSCORE\tOPEN ISSUES\tLAST SCAN STATUS\tNAME"}
127127
for _, profile := range allProfiles {
128128
score := ""
129129
if value, ok := profile.GetScoreOk(); ok {
130130
score = fmt.Sprintf("%.2f", *value)
131131
}
132-
coverage := ""
133-
if value, ok := profile.GetCoverageOk(); ok {
134-
coverage = fmt.Sprintf("%.2f", *value)
135-
}
136132
openIssueCount := ""
137133
if value, ok := profile.GetOpenIssueCountOk(); ok {
138134
openIssueCount = strconv.Itoa(*value)
@@ -141,7 +137,7 @@ profiles only (REST, GraphQL, WEBAPP). Use --all to include pentest profiles.`,
141137
if value, ok := profile.GetLastScanStatusOk(); ok {
142138
lastScanStatus = *value
143139
}
144-
result = append(result, fmt.Sprintf("%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s", profile.GetId(), profile.GetCreatedAt(), profile.Asset.GetType(), profile.GetInitiators(), score, coverage, openIssueCount, lastScanStatus, profile.GetName()))
140+
result = append(result, fmt.Sprintf("%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s", profile.GetId(), profile.GetCreatedAt(), profile.Asset.GetType(), profile.GetInitiators(), score, openIssueCount, lastScanStatus, profile.GetName()))
145141
}
146142
return result
147143
})

0 commit comments

Comments
 (0)