-
Notifications
You must be signed in to change notification settings - Fork 549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use cosign.ConfirmPrompt more consistently #2039
Conversation
Also unexport some needlessly exported consts in cli/fulcio/fulcio.go -- these should be implemented via sigstore/sigstore. Signed-off-by: Jason Hall <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
@@ -27,5 +27,6 @@ var _ Interface = (*CleanOptions)(nil) | |||
func (c *CleanOptions) AddFlags(cmd *cobra.Command) { | |||
c.Registry.AddFlags(cmd) | |||
cmd.Flags().StringVarP(&c.CleanType, "type", "", "all", "a type of clean: <signature|attestation|sbom|all> (default: all)") | |||
// TODO: Rename to --skip-confirmation for consistency? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it makes sense a lot to me, may I open an issue for this? @imjasonh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! I think we'll probably want --force
to continue to exist for 1+ release, with a warning that it's renamed to --skip-confirmation
, and use --force
's value to set o.SkipConfirmation
. If both are set and they disagree, then fail. Does that sound right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue: #2044
Also unexport some needlessly exported consts in cli/fulcio/fulcio.go --
these should be implemented via sigstore/sigstore.
Signed-off-by: Jason Hall [email protected]
Followups from #2018
@haydentherapper