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

Pretty Print Tree in ORAS Discover #306

Merged
merged 1 commit into from
Sep 7, 2021

Conversation

shizhMSFT
Copy link
Contributor

Before:

$ oras discover --plain-http --output tree $reg/test:base
localhost:5000/test:base
├── [foo]sha256:3c6ed9d37e825a80565d2e9602d727cd076ed7c5bf15c9193f6df6248735828c
├── [foo]sha256:4cbfbbe2e37038d8b6bffe99622c92709d9703e95f85851fc08953de176951a1
└── [bar]sha256:ccb9446f7dc9a55448c7f17dea6eda2c74ceda1c021dc747737c6f7b05584b0f

After:

$ oras discover --plain-http --output tree $reg/test:base
localhost:5000/test:base
├── foo
│   ├── sha256:3c6ed9d37e825a80565d2e9602d727cd076ed7c5bf15c9193f6df6248735828c
│   └── sha256:4cbfbbe2e37038d8b6bffe99622c92709d9703e95f85851fc08953de176951a1
└── bar
    └── sha256:ccb9446f7dc9a55448c7f17dea6eda2c74ceda1c021dc747737c6f7b05584b0f

Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
@shizhMSFT shizhMSFT merged commit 246bc2e into oras-project:artifacts Sep 7, 2021
sajayantony pushed a commit to sajayantony/oras that referenced this pull request Sep 13, 2021
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Sajay Antony <sajaya@microsoft.com>
@shizhMSFT shizhMSFT deleted the pretty-tree branch May 13, 2022 07:06
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.

2 participants