Skip to content

Commit 403ffd3

Browse files
committed
tree-wide: Call set_content_arrangement for tables
Let's wrap by default. Signed-off-by: Colin Walters <walters@verbum.org>
1 parent 9692f97 commit 403ffd3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/src/image.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ pub(crate) async fn list_entrypoint(
105105

106106
table
107107
.load_preset(NOTHING)
108+
.set_content_arrangement(comfy_table::ContentArrangement::Dynamic)
108109
.set_header(vec!["REPOSITORY", "TYPE"]);
109110

110111
for image in images {

ostree-ext/src/cli.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,8 @@ async fn container_history(repo: &ostree::Repo, imgref: &ImageReference) -> Resu
906906
let mut table = comfy_table::Table::new();
907907
table
908908
.load_preset(comfy_table::presets::NOTHING)
909-
.set_header(["ID", "SIZE", "CREATED BY"]);
909+
.set_content_arrangement(comfy_table::ContentArrangement::Dynamic)
910+
.set_header(["ID", "SIZE", "CRCEATED BY"]);
910911

911912
let mut history = img.configuration.history().iter();
912913
let layers = img.manifest.layers().iter();

0 commit comments

Comments
 (0)