Page MenuHomePhabricator

Provide a simple list of the built container images for a given tool (`toolforge build list` subset)
Open, Needs TriagePublicFeature

Description

I wanted a list of the images built for a tool, but on my 80 column terminal toolforge build list is outputting a table that wraps to 4 lines for each table row which makes scanning the output very difficult.

This workaround gives me the particular thing I was looking for:

$ toolforge build list --json | jq .destination_image | sort | uniq
"tools-harbor.wmcloud.org/tool-bridgebot/matterbridge:latest"
"tools-harbor.wmcloud.org/tool-bridgebot/tool-bridgebot:latest"

I'm not sure if a different subcommand (list-images?), some way to specify a subset of possible columns for list, or something like mariadb's \G vertical tabulation output would be a more ideal implementation. Even just a --wide option to get the current output vs a default that is more likely to fit in 80-100 columns would be an improvement for me. Build id values like bridgebot-buildpacks-pipelinerun-j67f6 eat up 39 chars right from the start however which makes me wonder if a horizontal table layout is ideal for most folks or not.