@@ -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\t CREATED AT\t ASSET TYPE\t INITIATORS\t SCORE\t COVERAGE \ t OPEN ISSUES\t LAST SCAN STATUS\t NAME" }
126+ result := []string {"ID\t CREATED AT\t ASSET TYPE\t INITIATORS\t SCORE\t OPEN ISSUES\t LAST SCAN STATUS\t NAME" }
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