fix: add missing imports and resolve build errors in list mode
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
use anyhow::{anyhow, Result};
|
||||
use log::debug;
|
||||
use chrono::Local;
|
||||
use prettytable::format::consts;
|
||||
use clap::Command;
|
||||
use std::collections::HashMap;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use crate::db::{get_item, get_item_last, get_items, get_items_matching, Item, Tag, Meta};
|
||||
use crate::modes::common::ColumnType;
|
||||
use std::io::{ErrorKind};
|
||||
use crate::modes::common::{format_size, get_format_box_chars_no_border_line_separator};
|
||||
use rusqlite::Connection;
|
||||
use crate::modes::common::{size_column, string_column};
|
||||
use prettytable::row;
|
||||
use prettytable::{Attr, Cell, Row, Table};
|
||||
@@ -60,7 +64,7 @@ pub fn mode_list(
|
||||
}
|
||||
|
||||
let mut table = Table::new();
|
||||
table.set_format(*format::consts::FORMAT_CLEAN);
|
||||
table.set_format(*consts::FORMAT_CLEAN);
|
||||
|
||||
let list_format = args.options.list_format.split(",");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user