-
Notifications
You must be signed in to change notification settings - Fork 179
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
feat: support specifying distribution spec in discover, cp and manifest push commands #757
Conversation
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Codecov Report
@@ Coverage Diff @@
## main #757 +/- ##
==========================================
+ Coverage 63.68% 63.86% +0.17%
==========================================
Files 19 19
Lines 705 714 +9
==========================================
+ Hits 449 456 +7
Misses 225 225
- Partials 31 33 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
cmd/oras/internal/option/remote.go
Outdated
func generatePrefix(prefix, description string) (flagPrefix, notePrefix string) { | ||
return prefix + "-", description + " " | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func generatePrefix(prefix, description string) (flagPrefix, notePrefix string) { | |
return prefix + "-", description + " " | |
} | |
func applyPrefix(prefix, description string) (flagPrefix, notePrefix string) { | |
if prefix == "" { | |
return "", "" | |
} | |
return prefix + "-", description + " " | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…st push commands (oras-project#757) Resolves oras-project#756 Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Resolves #756
Signed-off-by: Billy Zha jinzha1@microsoft.com