Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Oct 10, 2023

This PR updates the output format of notation cert list command.
Example output,

STORE TYPE         STORE NAME         CERTIFICATE   
ca                 myStore            myCert.pem    
ca                 myStore            myCert2.pem    
ca                 anotherStore       myCert3.crt    

Resolves #609
Resolves #772

Patrick Zheng added 3 commits October 9, 2023 16:54
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2023

Codecov Report

Attention: Patch coverage is 42.62295% with 35 lines in your changes missing coverage. Please review.

Project coverage is 64.09%. Comparing base (93e6853) to head (928a0f5).
Report is 143 commits behind head on main.

Files with missing lines Patch % Lines
cmd/notation/cert/list.go 15.78% 30 Missing and 2 partials ⚠️
internal/ioutil/print.go 80.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           main     #798       +/-   ##
=========================================
+ Coverage      0   64.09%   +64.09%     
=========================================
  Files         0       40       +40     
  Lines         0     2284     +2284     
=========================================
+ Hits          0     1464     +1464     
- Misses        0      698      +698     
- Partials      0      122      +122     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ghost ghost self-assigned this Oct 10, 2023
@ghost ghost added the enhancement New feature or request label Oct 10, 2023
@ghost ghost added this to the 1.1.0 milestone Oct 10, 2023
@ghost
Copy link
Author

ghost commented Oct 10, 2023

@toddysm @sozercan This PR intends to solve issue #609 and #772. Does the update look good to you? /cc: @yizha1

@ghost ghost requested review from toddysm and yizha1 October 10, 2023 02:11
JeyJeyGao
JeyJeyGao previously approved these changes Oct 10, 2023
Copy link
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

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

LGTM

@FeynmanZhou
Copy link
Member

The output looks much cleaner and straightforward than before. LGTM

@shizhMSFT shizhMSFT changed the title enhance: update notation cert list command output feat: update notation cert list command output Oct 10, 2023
Patrick Zheng added 2 commits October 11, 2023 10:07
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@ghost ghost requested review from priteshbandi and yizha1 October 11, 2023 03:32
@ghost ghost requested review from JeyJeyGao and shizhMSFT October 11, 2023 03:32
yizha1
yizha1 previously approved these changes Oct 11, 2023
Copy link
Contributor

@yizha1 yizha1 left a comment

Choose a reason for hiding this comment

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

Thanks @Two-Hearts

Updates on certificate.md LGTM

priteshbandi
priteshbandi previously approved these changes Oct 11, 2023
Copy link
Contributor

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

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

LGTM

shizhMSFT
shizhMSFT previously approved these changes Oct 11, 2023
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@ghost ghost dismissed stale reviews from shizhMSFT, priteshbandi, and yizha1 via 928a0f5 October 11, 2023 07:14
@ghost ghost requested review from priteshbandi and shizhMSFT October 11, 2023 07:17
@ghost
Copy link
Author

ghost commented Oct 11, 2023

Code cleaned up based on @shizhMSFT's suggestions.

Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

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

LGTM

@priteshbandi priteshbandi merged commit f205e6b into notaryproject:main Oct 11, 2023
@ghost ghost deleted the cert branch October 12, 2023 03:25
@shizhMSFT shizhMSFT mentioned this pull request Nov 6, 2023
6 tasks
@ghost ghost mentioned this pull request Jan 25, 2024
6 tasks
7h3-3mp7y-m4n pushed a commit to 7h3-3mp7y-m4n/notation that referenced this pull request Mar 29, 2025
This PR updates the output format of `notation cert list` command. Resolves notaryproject#609 and notaryproject#772. Example output:
```
STORE TYPE         STORE NAME         CERTIFICATE   
ca                 myStore            myCert.pem    
```

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
FeynmanZhou pushed a commit to FeynmanZhou/notation that referenced this pull request May 15, 2025
This PR updates the output format of `notation cert list` command. Resolves notaryproject#609 and notaryproject#772. Example output:
```
STORE TYPE         STORE NAME         CERTIFICATE   
ca                 myStore            myCert.pem    
```

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use columns with labels for cert list output [Usability Issue] Cert list is not helpful and just lists the files

6 participants