Skip to content

Conversation

@rhatdan
Copy link
Member

@rhatdan rhatdan commented Mar 27, 2017

This patch set will cleanup the output of buildah list adding truncate
flags as well as support images.

@rhatdan
Copy link
Member Author

rhatdan commented Mar 27, 2017

Alternative to #32

return fmt.Errorf("error reading build container %q: %v", name, err)
/* Maybe this was an image attempt to delete it */
_, err = store.DeleteImage(name, true)
return fmt.Errorf("error deleting image or container container %q: %v", name, err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"container container"?

This patch set will cleanup the output of buildah list adding truncate
flags as well as support images.
if len(images) > 0 && !quiet {
fmt.Printf("\nIMAGES\n\n")
if truncate {
fmt.Printf("%-12s %-64s\n", "IMAGE ID", "IMAGE NAME")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you want to do the full 64 for the name or a shorter version here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are trying to stay within 80 chars, I thought we would just do 64, also the Name is somewhat important while the ID is pretty much only used by the computer.
We have a bug in this patch in that you can not use the short name for delete operations.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's works for me, especially given the bug, I asked because I thought you shortened it at line 93. However i need to read more carefully, you didn't shorten it there either.

Copy link
Member

@TomSweeneyRedHat TomSweeneyRedHat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a nit and a question.

@rhatdan
Copy link
Member Author

rhatdan commented Mar 27, 2017

@nalind PTAL. This one is a little more controversial in that we are expanding the list command to handle both containers and images.

@rhatdan
Copy link
Member Author

rhatdan commented Mar 27, 2017

@TomSweeneyRedHat Could you take a look at getting the delete command to handle the short names?

@TomSweeneyRedHat
Copy link
Member

Sure, I'll see what I can mess up with short name deletes.

@rhatdan rhatdan closed this Mar 28, 2017
@rhatdan
Copy link
Member Author

rhatdan commented Mar 28, 2017

Will rename buildah list to
buildah containers
and
buildah images.

nalind pushed a commit that referenced this pull request Nov 28, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants