Fix scan message with quiet flag

Signed-off-by: Chris Crone <christopher.crone@docker.com>
This commit is contained in:
Chris Crone 2021-04-13 13:53:07 +02:00
parent 74773b9062
commit 411612ed8d
8 changed files with 77 additions and 10 deletions

View file

@ -80,7 +80,7 @@ func Exec(root *cobra.Command) {
os.Exit(1)
}
command := metrics.GetCommand(os.Args[1:])
if command == "build" {
if command == "build" && !metrics.HasQuietFlag(os.Args[1:]) {
utils.DisplayScanSuggestMsg()
}
metrics.Track(store.DefaultContextType, os.Args[1:], metrics.SuccessStatus)