Skip to content

Commit

Permalink
Output via stdout instead of stderr
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Steindler <steiza@github.com>
  • Loading branch information
steiza committed Sep 12, 2024
1 parent a53ec25 commit e0041bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/cosign/cli/trustedroot/trustedroot.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (
"github.com/sigstore/sigstore-go/pkg/root"

"github.com/sigstore/cosign/v2/cmd/cosign/cli/rekor"
"github.com/sigstore/cosign/v2/internal/ui"
)

type CreateCmd struct {
Expand All @@ -41,7 +40,7 @@ type CreateCmd struct {
TSACertChainPath string
}

func (c *CreateCmd) Exec(ctx context.Context) error {
func (c *CreateCmd) Exec(_ context.Context) error {
var fulcioCertAuthorities []root.CertificateAuthority
var timestampAuthorities []root.CertificateAuthority
rekorTransparencyLogs := make(map[string]*root.TransparencyLog)
Expand Down Expand Up @@ -144,7 +143,7 @@ func (c *CreateCmd) Exec(ctx context.Context) error {
return err
}
} else {
ui.Infof(ctx, string(trBytes))
fmt.Println(string(trBytes))
}

return nil
Expand Down

0 comments on commit e0041bb

Please sign in to comment.