fix: add missing imports and resolve build errors in list mode

This commit is contained in:
Andrew Phillips (aider)
2025-05-10 13:04:08 -03:00
parent 2b98a5437a
commit b9004c871a

View File

@@ -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(",");