fix: resolve mode_list duplication and missing imports in list.rs
This commit is contained in:
@@ -38,7 +38,6 @@ pub mod db;
|
|||||||
//pub mod item;
|
//pub mod item;
|
||||||
|
|
||||||
use compression::CompressionType;
|
use compression::CompressionType;
|
||||||
use modes::list::mode_list;
|
|
||||||
|
|
||||||
extern crate term;
|
extern crate term;
|
||||||
|
|
||||||
@@ -309,7 +308,7 @@ fn main() -> Result<(), Error> {
|
|||||||
crate::modes::get::mode_get(&mut cmd, args, ids, tags, &mut conn, data_path)?
|
crate::modes::get::mode_get(&mut cmd, args, ids, tags, &mut conn, data_path)?
|
||||||
}
|
}
|
||||||
KeepModes::Diff => mode_diff(&mut cmd, args, ids, tags, &mut conn, data_path)?,
|
KeepModes::Diff => mode_diff(&mut cmd, args, ids, tags, &mut conn, data_path)?,
|
||||||
KeepModes::List => mode_list::mode_list(&mut cmd, args, ids, tags, &mut conn, data_path)?,
|
KeepModes::List => crate::modes::list::mode_list(&mut cmd, args, ids, tags, &mut conn, data_path)?,
|
||||||
KeepModes::Update => {
|
KeepModes::Update => {
|
||||||
crate::modes::update::mode_update(&mut cmd, args, ids, tags, &mut conn, data_path)?
|
crate::modes::update::mode_update(&mut cmd, args, ids, tags, &mut conn, data_path)?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,12 @@
|
|||||||
use anyhow::{anyhow, Error, Result};
|
use anyhow::{anyhow, Result};
|
||||||
use clap::Command;
|
use clap::Command;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::str::FromStr;
|
|
||||||
|
|
||||||
use crate::compression::CompressionType;
|
use crate::db::{get_item, get_item_last, get_items, get_items_matching, Item, Tag, Meta};
|
||||||
use crate::db::{get_item, get_item_last, get_items, get_items_matching};
|
|
||||||
use crate::modes::common::ColumnType;
|
use crate::modes::common::ColumnType;
|
||||||
use crate::modes::common::{format_size, get_format_box_chars_no_border_line_separator};
|
use crate::modes::common::{format_size, get_format_box_chars_no_border_line_separator};
|
||||||
use crate::modes::common::{size_column, string_column};
|
use crate::modes::common::{size_column, string_column};
|
||||||
use is_terminal::IsTerminal;
|
|
||||||
use prettytable::format::TableFormat;
|
|
||||||
use prettytable::row;
|
use prettytable::row;
|
||||||
use prettytable::{Attr, Cell, Row, Table};
|
use prettytable::{Attr, Cell, Row, Table};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user