Skip to content

Commit 50315fc

Browse files
author
Jake Sanders
authored
remove obsolete --output flag (#1146)
Signed-off-by: Jake Sanders <[email protected]>
1 parent a1efb18 commit 50315fc

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

cmd/cosign/cli/options/sign.go

-4
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ func (o *SignOptions) AddFlags(cmd *cobra.Command) {
6060
cmd.Flags().BoolVar(&o.Upload, "upload", true,
6161
"whether to upload the signature")
6262

63-
// TODO: remove when output flag is fully deprecated
64-
cmd.Flags().StringVar(&o.Output, "output", "",
65-
"write the signature to FILE")
66-
6763
cmd.Flags().StringVar(&o.OutputSignature, "output-signature", "",
6864
"write the signature to FILE")
6965

cmd/cosign/cli/sign.go

-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020

2121
"github.com/pkg/errors"
2222
"github.com/spf13/cobra"
23-
"github.com/spf13/viper"
2423

2524
"github.com/sigstore/cosign/cmd/cosign/cli/generate"
2625
"github.com/sigstore/cosign/cmd/cosign/cli/options"
@@ -29,7 +28,6 @@ import (
2928

3029
func Sign() *cobra.Command {
3130
o := &options.SignOptions{}
32-
viper.RegisterAlias("output", "output-signature")
3331

3432
cmd := &cobra.Command{
3533
Use: "sign",

doc/cosign_sign.md

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)