From 053f14ff6fc562f673c0f10257cf5e9baab29d28 Mon Sep 17 00:00:00 2001 From: Owen Rumney Date: Wed, 13 Apr 2022 18:38:42 +0100 Subject: [PATCH] feat(command): add quiet flag to base command Signed-off-by: Owen Rumney --- cmd/aqua/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/aqua/main.go b/cmd/aqua/main.go index 5081d531..68a247b7 100644 --- a/cmd/aqua/main.go +++ b/cmd/aqua/main.go @@ -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,