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

Add common UI library for confirmation prompts. #2572

Merged
merged 1 commit into from
Jan 2, 2023

Conversation

znewman01
Copy link
Contributor

@znewman01 znewman01 commented Dec 22, 2022

This library:

  • Is testable.
  • Is consistent across the CLI.

Related to (does not fix) #2510, #2296 and #2204.

Summary

Release Note

NONE

Documentation

N/A (though eventually we want to document common conventions for users).

@codecov-commenter
Copy link

codecov-commenter commented Dec 22, 2022

Codecov Report

Merging #2572 (2974a06) into main (b2cea0c) will increase coverage by 0.49%.
The diff coverage is 60.00%.

@@            Coverage Diff             @@
##             main    #2572      +/-   ##
==========================================
+ Coverage   30.15%   30.65%   +0.49%     
==========================================
  Files         141      144       +3     
  Lines        8688     8723      +35     
==========================================
+ Hits         2620     2674      +54     
+ Misses       5684     5665      -19     
  Partials      384      384              
Impacted Files Coverage Δ
cmd/cosign/cli/clean.go 0.00% <0.00%> (ø)
cmd/cosign/cli/fulcio/fulcio.go 16.66% <0.00%> (-0.14%) ⬇️
cmd/cosign/cli/generate/generate_key_pair.go 9.45% <0.00%> (+0.70%) ⬆️
cmd/cosign/cli/importkeypair/import_key_pair.go 16.66% <0.00%> (+2.08%) ⬆️
pkg/cosign/common.go 0.00% <ø> (ø)
cmd/cosign/cli/sign/sign.go 16.34% <22.22%> (+0.67%) ⬆️
internal/ui/env.go 60.00% <60.00%> (ø)
internal/ui/log.go 100.00% <100.00%> (ø)
internal/ui/prompt.go 100.00% <100.00%> (ø)
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

dlorenc
dlorenc previously approved these changes Dec 28, 2022
cpanato
cpanato previously approved these changes Dec 29, 2022
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

looks cool

can you rebase and fix the conflict?
thanks!

This library:

- Is testable.
- Is consistent across the CLI.

Related to (does not fix) sigstore#2296 and sigstore#2204.

Signed-off-by: Zachary Newman <zjn@chainguard.dev>
@znewman01
Copy link
Contributor Author

Rebased!

@znewman01 znewman01 merged commit f7993d0 into sigstore:main Jan 2, 2023
@github-actions github-actions bot added this to the v1.14.0 milestone Jan 2, 2023
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.

None yet

4 participants