style: Use simplified table styling for list output

This commit is contained in:
Andrew Phillips
2025-09-08 18:26:37 -03:00
committed by Andrew Phillips (aider)
parent bf257b5ff3
commit 50ee3ded9f

View File

@@ -6,8 +6,7 @@ use crate::modes::common::{size_column, string_column, OutputFormat};
use anyhow::{Result};
use log::debug;
use comfy_table::{Table, ContentArrangement, Cell, Row, Color, Attribute};
use comfy_table::presets::UTF8_FULL;
use comfy_table::modifiers::UTF8_ROUND_CORNERS;
use comfy_table::presets::NOTHING;
use comfy_table::CellAlignment;
use serde::{Deserialize, Serialize};
use serde_json;
@@ -63,8 +62,7 @@ pub fn mode_list(
let mut table = Table::new();
table
.load_preset(UTF8_FULL)
.apply_modifier(UTF8_ROUND_CORNERS)
.load_preset(NOTHING)
.set_content_arrangement(ContentArrangement::Dynamic);
if !stdout().is_terminal() {