fix: add missing ColumnType/TableFormat imports and re-export
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
use humansize::{FormatSizeOptions, BINARY};
|
use humansize::{FormatSizeOptions, BINARY};
|
||||||
use log::debug;
|
use log::debug;
|
||||||
|
use prettytable::format::TableFormat;
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::env;
|
use std::env;
|
||||||
use anyhow::anyhow;
|
|
||||||
|
|
||||||
pub fn get_meta_from_env() -> HashMap<String, String> {
|
pub fn get_meta_from_env() -> HashMap<String, String> {
|
||||||
debug!("MAIN: Getting meta from KEEP_META_*");
|
debug!("MAIN: Getting meta from KEEP_META_*");
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
use crate::Alignment;
|
use crate::Alignment;
|
||||||
|
use crate::modes::common::ColumnType;
|
||||||
|
|
||||||
use crate::db::{
|
use crate::db::{
|
||||||
get_item, get_item_last, get_items, get_items_matching, get_item_tags, get_item_meta, Item, Meta, Tag,
|
get_item, get_item_last, get_items, get_items_matching, get_item_tags, get_item_meta, Item, Meta, Tag,
|
||||||
@@ -63,6 +64,7 @@ pub fn mode_list(
|
|||||||
table.set_format(*prettytable::format::consts::FORMAT_CLEAN);
|
table.set_format(*prettytable::format::consts::FORMAT_CLEAN);
|
||||||
|
|
||||||
let list_format = args.options.list_format.split(",");
|
let list_format = args.options.list_format.split(",");
|
||||||
|
use crate::modes::common::ColumnType;
|
||||||
|
|
||||||
let mut title_row = row!();
|
let mut title_row = row!();
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
pub mod common;
|
pub mod common {
|
||||||
|
pub use super::common::*;
|
||||||
|
}
|
||||||
pub mod delete;
|
pub mod delete;
|
||||||
pub mod get;
|
pub mod get;
|
||||||
pub mod info;
|
pub mod info;
|
||||||
|
|||||||
Reference in New Issue
Block a user