diff --git a/cmd/rekor-cli/app/search.go b/cmd/rekor-cli/app/search.go index 4552a1c3f..2b1e89d17 100644 --- a/cmd/rekor-cli/app/search.go +++ b/cmd/rekor-cli/app/search.go @@ -201,7 +201,9 @@ var searchCmd = &cobra.Command{ return nil, fmt.Errorf("no matching entries found") } - fmt.Fprintln(os.Stderr, "Found matching entries (listed by UUID):") + if viper.GetString("format") != "json" { + fmt.Fprintln(os.Stderr, "Found matching entries (listed by UUID):") + } return &searchCmdOutput{ UUIDs: resp.GetPayload(),