style: Use simplified table styling for list output
This commit is contained in:
committed by
Andrew Phillips (aider)
parent
bf257b5ff3
commit
50ee3ded9f
@@ -6,8 +6,7 @@ use crate::modes::common::{size_column, string_column, OutputFormat};
|
|||||||
use anyhow::{Result};
|
use anyhow::{Result};
|
||||||
use log::debug;
|
use log::debug;
|
||||||
use comfy_table::{Table, ContentArrangement, Cell, Row, Color, Attribute};
|
use comfy_table::{Table, ContentArrangement, Cell, Row, Color, Attribute};
|
||||||
use comfy_table::presets::UTF8_FULL;
|
use comfy_table::presets::NOTHING;
|
||||||
use comfy_table::modifiers::UTF8_ROUND_CORNERS;
|
|
||||||
use comfy_table::CellAlignment;
|
use comfy_table::CellAlignment;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use serde_json;
|
use serde_json;
|
||||||
@@ -63,8 +62,7 @@ pub fn mode_list(
|
|||||||
|
|
||||||
let mut table = Table::new();
|
let mut table = Table::new();
|
||||||
table
|
table
|
||||||
.load_preset(UTF8_FULL)
|
.load_preset(NOTHING)
|
||||||
.apply_modifier(UTF8_ROUND_CORNERS)
|
|
||||||
.set_content_arrangement(ContentArrangement::Dynamic);
|
.set_content_arrangement(ContentArrangement::Dynamic);
|
||||||
|
|
||||||
if !stdout().is_terminal() {
|
if !stdout().is_terminal() {
|
||||||
|
|||||||
Reference in New Issue
Block a user