Skip to content

Commit 16538f8

Browse files
authored
Merge pull request #76 from Escape-Technologies/fix/cli-w-display-results
fix: scan -w display results when scan is completed
2 parents 5fd82dd + fa3eea9 commit 16538f8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/cli/cmd/scans.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,8 @@ func watchScan(ctx context.Context, scanID string) error {
467467
out.Log("Scan canceled")
468468
} else if status.Status == "FAILED" {
469469
out.Log("Scan failed")
470-
} else if status.Status == "FINISHED" {
471-
out.Log("Scan finished")
472470
} else {
471+
out.Print(status, "Scan completed")
473472
err := printScanIssues(ctx, scanID)
474473
if err != nil {
475474
return fmt.Errorf("unable to fetch scan issues: %w", err)
@@ -526,7 +525,7 @@ func printScanIssues(ctx context.Context, scanID string) error {
526525
return fmt.Errorf("unable to fetch scan issues: %w", err)
527526
}
528527
out.Table(issues, func() []string {
529-
res := []string{"ID\tSEVERITY\tTYPE\tCATEGORY\tNAME\tIGNORED\tURL\tLINK"}
528+
res := []string{"ID\tSEVERITY\tCATEGORY\tNAME\tLINK"}
530529
for _, i := range issues {
531530
res = append(res, fmt.Sprintf("%s\t%s\t%s\t%s\t%s",
532531
i.GetId(),

0 commit comments

Comments
 (0)