Skip to content
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

Merged
merged 1 commit into from
Jun 30, 2022

Conversation

imjasonh
Copy link
Member

@imjasonh imjasonh commented Jun 30, 2022

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

NONE

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]>
Copy link
Contributor

@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@dlorenc dlorenc merged commit 94832ba into sigstore:main Jun 30, 2022
@github-actions github-actions bot added this to the v1.10.0 milestone Jun 30, 2022
@@ -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?
Copy link
Member

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

Copy link
Member Author

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely !

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue: #2044

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants