add -tree option to images#1794
Conversation
|
The first commit is just the implementation. If the team likes it, I'll add tests and 'go fmt' it. |
|
@justone Looks awesome. One thing that does not work is if I run |
|
Ah, ok. I'll add that and some tests. Thanks. |
|
This looks very cool and I would love to use it :) My first thought is that it would make more sense to move the display logic to the client. It can probably use the existing JSON api routes to get all the data it needs, no? |
|
@crosbymichael I added the ability to specify a starting image. @shykes I originally thought to put the logic on the client side, but I found that the logic for Also, the JSON api route doesn't include parentage, so that would have to be added. Would it be ok to finish this implementation where it is and then open another PR to move both |
|
@justone If it's not too much work, feel free to move, |
|
@vieux I think it won't be too much more work. If I add parentage to the JSON images API, would that require an API version bump? |
|
Nope, as we just released 1.5 it's ok |
|
if you could also add a size column, showing the size of each image and also the virtual size including its ancestors, that'd be great. |
|
Good idea. I do still plan on implementing this. Just had life get busy for a bit. |
|
@justone Any update on this? Do you need any help? |
|
No update as of yet. Been catching up with the latest code over the past couple days and hope to have something this weekend. |
|
Oops, accidental close. |
|
Todo list for the rest of the pull request:
|
|
Alright, @shykes, @crosbymichael, and @vieux, this pull request is ready for review. I just rebased to master. All tests pass, except for Could you take a look and let me know if there's anything I need to fix? Thanks. |
|
@justone sorry, could you rebase this once again please ? |
|
@vieux No problem. Rebase done. |
|
LGTM, ping @crosbymichael |
|
ping @creack @crosbymichael |
|
Rebased again. |
|
LGTM, /cc @metalivedev could you take a look at the doc? |
There was a problem hiding this comment.
I don't think it is worth holding up the merge, but you removed viz from the API, so this sentence is incorrect.
There was a problem hiding this comment.
I'll fix this up quick.
There was a problem hiding this comment.
What happened to the requirement that the Content-type header should be set to "application/tar". Is that no longer a requirement?
There was a problem hiding this comment.
Looks like it's on line 984, below.
|
Thanks for the quick fix on the images/viz! |
|
Ok, I fixed up the cli.rst doc. Thanks for your reviewing. |
|
Docs LGTM. Thanks for the fixes! |
add -tree option to images
|
Awesome! Thank you to everyone who reviewed this PR. |
This adds another option to
imagesto print the image hierarchy in text form.This would (hopefully) solve #1776.