Skip to content

use cobra for notation cli#255

Merged
shizhMSFT merged 6 commits intonotaryproject:mainfrom
chloeyin:cobra-cli
Jul 27, 2022
Merged

use cobra for notation cli#255
shizhMSFT merged 6 commits intonotaryproject:mainfrom
chloeyin:cobra-cli

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
7h3-3mp7y-m4n pushed a commit to 7h3-3mp7y-m4n/notation that referenced this pull request Mar 29, 2025
Signed-off-by: zaihaoyin <zaihaoyin@microsoft.com>
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

Comments