Skip to content

Commit

Permalink
disable ui before run function on db status (#2008)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <[email protected]>
  • Loading branch information
wagoodman authored Jul 25, 2024
1 parent 3af8d1e commit 1d38cea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/grype/cli/commands/db_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ func DBStatus(app clio.Application) *cobra.Command {
opts := dbOptionsDefault(app.ID())

return app.SetupCommand(&cobra.Command{
Use: "status",
Short: "display database status",
Args: cobra.ExactArgs(0),
PostRunE: disableUI(app),
Use: "status",
Short: "display database status",
Args: cobra.ExactArgs(0),
PreRunE: disableUI(app),
RunE: func(_ *cobra.Command, _ []string) error {
return runDBStatus(opts.DB)
},
Expand Down

0 comments on commit 1d38cea

Please sign in to comment.