Skip to content

Commit

Permalink
feat(command): add quiet flag to base command
Browse files Browse the repository at this point in the history
Signed-off-by: Owen Rumney <owen.rumney@aquasec.com>
  • Loading branch information
Owen Rumney committed Apr 13, 2022
1 parent 77e6a0a commit 053f14f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/aqua/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ func main() {
app.Action = runScan
app.Flags = fsCmd.Flags

app.Flags = append(app.Flags,
&cli.BoolFlag{
Name: "quiet",
Usage: "suppress progress bar and log output (default: false)",
EnvVars: []string{"TRIVY_QUIET"},
})

app.Commands = []*cli.Command{
fsCmd,
configCmd,
Expand Down

0 comments on commit 053f14f

Please sign in to comment.