Use the clean format for --list
This commit is contained in:
@@ -492,11 +492,7 @@ fn mode_list(cmd: &mut Command, args: Args, ids: &mut Vec<i64>, tags: &Vec<Strin
|
|||||||
let meta_columns = args.options.list_meta.split(",");
|
let meta_columns = args.options.list_meta.split(",");
|
||||||
|
|
||||||
let mut table = Table::new();
|
let mut table = Table::new();
|
||||||
if std::io::stdout().is_terminal() {
|
table.set_format(*format::consts::FORMAT_CLEAN);
|
||||||
table.set_format(*FORMAT_BOX_CHARS_NO_BORDER_LINE_SEPARATOR);
|
|
||||||
} else {
|
|
||||||
table.set_format(*FORMAT_NO_BORDER_LINE_SEPARATOR);
|
|
||||||
}
|
|
||||||
|
|
||||||
let mut title_row = row!(
|
let mut title_row = row!(
|
||||||
b->"ID",
|
b->"ID",
|
||||||
|
|||||||
Reference in New Issue
Block a user