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 cobra for notation cli #255

Merged
merged 6 commits into from
Jul 27, 2022
Merged

Conversation

chloeyin
Copy link
Contributor

@chloeyin chloeyin commented Jul 20, 2022

Signed-off-by: zaihaoyin zaihaoyin@microsoft.com

What

This PR fixes #183 by using github.com/spf13/cobra to replace github.com/urfave/cli/v2, which is a cli package also used by oras-cli.
This PR also fixed #211, which is caused by urfave.

Notice

According to the statement from previous PR(#250), this is the second PR of the whole series, which updates cmd/notation.
As we have discussed in the #251, docker-notation may be moved to another repo, so I will left most of the code unchanged.
Though, I changed signImage function of the docker-notation cmd only to make sure the code can be compiled.
I will add unit test in the next PR.

Signed-off-by: zaihaoyin <zaihaoyin@microsoft.com>
zaihaoyin added 2 commits July 21, 2022 10:06
Signed-off-by: zaihaoyin <zaihaoyin@microsoft.com>
Signed-off-by: zaihaoyin <zaihaoyin@microsoft.com>
Signed-off-by: zaihaoyin <zaihaoyin@microsoft.com>
Signed-off-by: zaihaoyin <zaihaoyin@microsoft.com>
@patrickzheng200
Copy link
Contributor

LGTM

@dtzar
Copy link
Contributor

dtzar commented Jul 25, 2022

@gokarnm - can you or someone on your side please review this today? This is important/blocking to move forward for a number of things, including bug fixes we have.

@binbin-li
Copy link
Contributor

lgtm

Signed-off-by: zaihaoyin <zaihaoyin@microsoft.com>
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

@shizhMSFT shizhMSFT merged commit a502103 into notaryproject:main Jul 27, 2022
@chloeyin chloeyin mentioned this pull request Jul 29, 2022
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.

notation auth to CNCF ORAS registry Command flags after arguments are discarded without warning
6 participants