anchore / grype

A vulnerability scanner for container images and filesystems
Apache License 2.0
8.58k stars 559 forks source link

Disable ui before run function on db status #2008

Closed wagoodman closed 2 months ago

wagoodman commented 2 months ago

The UI is being disabled after the run instead of before the run, leading to garbled output:

❯ grype db status
Location:  /Users/wagoodman/Library/Caches/grype/db/5
                                                     Built:     2024-07-24 01:31:07 +0000 UTC
                                                                                             Schema:    5
                                                                                                         Checksum:  sha256:e56b36edcd25dcff0566eecb2b83fad05e5451d881b81662d9b16f903185b235
                                                                                                                                                                                           Status:    valid

This PR fixes this behavior