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

WIP: support formatting in ORAS commands #7

Closed
wants to merge 61 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
36585f5
feat: support formatted output in oras attach and push
qweeah Jan 9, 2024
5a68d92
check in go sum files
qweeah Jan 9, 2024
6f04700
Merge branch 'main' into format-push
qweeah Jan 18, 2024
190e3e9
add e2e
qweeah Jan 18, 2024
67f89ce
Merge remote-tracking branch 'origin_src/main' into format-push
qweeah Jan 18, 2024
e9ae717
invalid template e2e
qweeah Jan 18, 2024
6c33ce6
remove unused codes
qweeah Jan 18, 2024
0a642c4
add coverage
qweeah Jan 19, 2024
3b2caba
add unit test
qweeah Jan 19, 2024
f113430
add coverage
qweeah Jan 19, 2024
c2df28b
revert change
qweeah Jan 19, 2024
4f97b26
Merge remote-tracking branch 'origin_src/main' into format-push
qweeah Jan 19, 2024
1a97318
Merge remote-tracking branch 'origin_src/main' into format-push
qweeah Jan 19, 2024
04985b2
hide empty value when formatting
qweeah Jan 22, 2024
d478121
feat: support formatting in oras pull
qweeah Jan 22, 2024
5fe9118
support discover
qweeah Jan 23, 2024
7318d40
Merge remote-tracking branch 'origin_src/main' into format-push
qweeah Jan 23, 2024
dc3526f
Merge branch 'format-push' into format-pull-fetch-discover
qweeah Jan 23, 2024
543154e
add manifest fetch
qweeah Jan 23, 2024
f69dbe9
add test for pull
qweeah Jan 24, 2024
a79c322
fix e2e
qweeah Jan 24, 2024
06f8da3
fix bug
qweeah Jan 24, 2024
4ffd8fd
bug fix with e2e
qweeah Jan 25, 2024
58446a5
add platform
qweeah Jan 25, 2024
fbd10af
build(ci): release artifacts for freebsd (#1192)
kranurag7 Jan 25, 2024
18c15f6
fix e2e
qweeah Jan 25, 2024
65200aa
Merge branch 'format-push' into format-pull-fetch-discover
qweeah Jan 25, 2024
436148b
add e2e for manifest fetch
qweeah Jan 25, 2024
7eb334d
fix e2e
qweeah Jan 25, 2024
3a63eeb
Merge remote-tracking branch 'origin_src/main' into format-push
qweeah Jan 25, 2024
2852b1f
add manifest fetch e2e
qweeah Jan 25, 2024
4cc5bd0
fix e2e
qweeah Jan 25, 2024
e9879a4
add manifest get e2e
qweeah Jan 25, 2024
d929bf0
Merge branch 'format-push' into format-pull-fetch-discover
qweeah Jan 25, 2024
031aa48
fix bug
qweeah Jan 25, 2024
64b3ddd
fix fetching bug
qweeah Jan 25, 2024
b7c052c
fix e2e
qweeah Jan 25, 2024
8a0fb69
add e2e for discover
qweeah Jan 25, 2024
bacd1f6
add deprecate hint
qweeah Jan 25, 2024
ec86ba2
add discover e2e test
qweeah Jan 25, 2024
b6b9b38
add e2e for discover
qweeah Jan 25, 2024
d05436c
remove focus
qweeah Jan 25, 2024
f90598a
fix e2e
qweeah Jan 25, 2024
3a0060b
update discover usage in e2e
qweeah Jan 25, 2024
bee79c5
remove status checking
qweeah Jan 25, 2024
421a183
remove focus
qweeah Jan 25, 2024
9da1be0
fix e2e
qweeah Jan 25, 2024
2e41840
fix e2e
qweeah Jan 25, 2024
dcd5e44
update copy e2e tests
qweeah Jan 25, 2024
bcbdf53
code clean
qweeah Jan 25, 2024
250d40c
fix copy e2e
qweeah Jan 25, 2024
e9df29f
add test to attach twice
qweeah Jan 25, 2024
8545fb3
fix e2e
qweeah Jan 25, 2024
fe9e07d
add coverage
qweeah Jan 25, 2024
8be4221
Merge branch 'format-push' into format-pull-fetch-discover
qweeah Jan 29, 2024
5ef94fc
bug fix
qweeah Jan 29, 2024
016ddbf
fix e2e
qweeah Jan 29, 2024
4878351
fix e2e
qweeah Jan 29, 2024
068d9c2
fix e2e
qweeah Jan 29, 2024
a8f115e
fix lint
qweeah Jan 29, 2024
97c58d9
fix e2e
qweeah Jan 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix lint
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
qweeah committed Jan 29, 2024
commit a8f115e45530e4e486442a4989e7ed42b61b0873
8 changes: 4 additions & 4 deletions cmd/oras/internal/display/pull.go
Original file line number Diff line number Diff line change
@@ -237,11 +237,11 @@ func (ph *PullHandler) PostPull(root ocispec.Descriptor) error {
} else if ph.needTextOutput {
// suggest oras copy for pulling layers without annotation
if ph.layerSkipped.Load() {
Print("Skipped pulling layers without file name in", ocispec.AnnotationTitle)
Print("Use 'oras copy", ph.target.RawReference, "--to-oci-layout <layout-dir>' to pull all layers.")
_ = Print("Skipped pulling layers without file name in", ocispec.AnnotationTitle)
_ = Print("Use 'oras copy", ph.target.RawReference, "--to-oci-layout <layout-dir>' to pull all layers.")
} else {
Print("Pulled", ph.target.AnnotatedReference())
Print("Digest:", root.Digest)
_ = Print("Pulled", ph.target.AnnotatedReference())
_ = Print("Digest:", root.Digest)
}
}
return nil