Skip to content

Commit

Permalink
tree-wide: Call set_content_arrangement for tables
Browse files Browse the repository at this point in the history
Let's wrap by default.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Dec 6, 2024
1 parent 9692f97 commit 403ffd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ pub(crate) async fn list_entrypoint(

table
.load_preset(NOTHING)
.set_content_arrangement(comfy_table::ContentArrangement::Dynamic)
.set_header(vec!["REPOSITORY", "TYPE"]);

for image in images {
Expand Down
3 changes: 2 additions & 1 deletion ostree-ext/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,8 @@ async fn container_history(repo: &ostree::Repo, imgref: &ImageReference) -> Resu
let mut table = comfy_table::Table::new();
table
.load_preset(comfy_table::presets::NOTHING)
.set_header(["ID", "SIZE", "CREATED BY"]);
.set_content_arrangement(comfy_table::ContentArrangement::Dynamic)
.set_header(["ID", "SIZE", "CRCEATED BY"]);

let mut history = img.configuration.history().iter();
let layers = img.manifest.layers().iter();
Expand Down

0 comments on commit 403ffd3

Please sign in to comment.