diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 9a4c06f..9769201 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -19,7 +19,7 @@ path = "src/main.rs" anyhow = "1.0.52" chrono = "0.4.19" -clap = "2.34.0" +clap = "3.0.10" comfy-table = "5.0.0" env_logger = "0.9.0" fuzzy-matcher = "0.3.7" @@ -27,9 +27,9 @@ indicatif = "0.16.2" libjens = { git = "https://tilera.xyz/git/LordMZTE/libjens.git", rev = "1.1.0" } log = "0.4.14" opener = "0.5.0" -reqwest = { version = "0.11.8", features = ["stream", "multipart"] } -serde_json = "1.0.73" -structopt = "0.3.25" +reqwest = { version = "0.11.9", features = ["stream", "multipart"] } +serde_json = "1.0.75" +structopt = "0.3.26" term_size = "0.3.2" tokio = { version = "1.15.0", features = ["macros", "fs", "process", "rt-multi-thread"] } tokio-util = { version = "0.6.9", features = ["codec"] } diff --git a/cli/src/table.rs b/cli/src/table.rs index a022f7a..2ffa3ef 100644 --- a/cli/src/table.rs +++ b/cli/src/table.rs @@ -28,7 +28,7 @@ macro_rules! impl_table_header { impl_table_header!(User, vec!["Name", "ID"]); impl_table_header!(Category, vec!["Name", "ID"]); -impl_table_header!(Meme, vec!["Link", "Category", "User", "Timestamp"]); +impl_table_header!(Meme, vec!["Link", "Category", "User", "Timestamp", "ID"]); /// a newtype wrapper to convert libjens types to table rows pub struct JMTableEntry(pub T); @@ -55,6 +55,7 @@ impl From> for Row { .timestamp(e.0.timestamp, 0) .format("%F %R") .to_string(), + e.0.id, ] .into() }