Skip to content

Commit

Permalink
omit informational message if machine-parseable output has been reque…
Browse files Browse the repository at this point in the history
…sted (#1486)

Signed-off-by: Bob Callaway <bcallaway@google.com>
  • Loading branch information
bobcallaway authored May 23, 2023
1 parent d865522 commit 43be4d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/rekor-cli/app/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 43be4d8

Please sign in to comment.