remove terminal-link dependency
This commit is contained in:
parent
cb4d395997
commit
dfff01acf6
3 changed files with 4 additions and 12 deletions
7
Cargo.lock
generated
7
Cargo.lock
generated
|
@ -1034,7 +1034,6 @@ dependencies = [
|
||||||
"reqwest",
|
"reqwest",
|
||||||
"rss",
|
"rss",
|
||||||
"serde",
|
"serde",
|
||||||
"terminal-link",
|
|
||||||
"tokio",
|
"tokio",
|
||||||
"toml",
|
"toml",
|
||||||
"xdg",
|
"xdg",
|
||||||
|
@ -1439,12 +1438,6 @@ dependencies = [
|
||||||
"windows-sys 0.59.0",
|
"windows-sys 0.59.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "terminal-link"
|
|
||||||
version = "0.1.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "253bcead4f3aa96243b0f8fa46f9010e87ca23bd5d0c723d474ff1d2417bbdf8"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tinystr"
|
name = "tinystr"
|
||||||
version = "0.7.6"
|
version = "0.7.6"
|
||||||
|
|
|
@ -16,7 +16,6 @@ toml = "0.8.19"
|
||||||
xdg = "2.5.2"
|
xdg = "2.5.2"
|
||||||
futures = "0.3.31"
|
futures = "0.3.31"
|
||||||
indicatif = "0.17.9"
|
indicatif = "0.17.9"
|
||||||
terminal-link = "0.1.0"
|
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
opt-level = 0
|
opt-level = 0
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
use indicatif::ProgressStyle;
|
use indicatif::ProgressStyle;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use terminal_link::Link;
|
|
||||||
use tokio;
|
use tokio;
|
||||||
|
|
||||||
mod config;
|
mod config;
|
||||||
|
@ -20,14 +19,15 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||||
.try_into()
|
.try_into()
|
||||||
.expect("Could not convert list length"),
|
.expect("Could not convert list length"),
|
||||||
);
|
);
|
||||||
pb.set_style(ProgressStyle::with_template("{wide_bar} {percent} {msg}").unwrap());
|
pb.set_style(ProgressStyle::with_template("{wide_bar} {percent}% {msg}").unwrap());
|
||||||
let all_items = data::run_tasks(values.to_vec(), count, skip_amount, &pb).await;
|
let all_items = data::run_tasks(values.to_vec(), count, skip_amount, &pb).await;
|
||||||
pb.finish_and_clear();
|
pb.finish_and_clear();
|
||||||
|
|
||||||
for item in all_items {
|
for item in all_items {
|
||||||
println!(
|
println!(
|
||||||
"\x1b[1m>\x1b[0m \x1b[1;32m{}\x1b[0m\n\x1b[3m\x1b[2m{}\x1b[0m\n\x1b[2m{}\x1b[0m\n",
|
"\x1b[1m>\x1b[0m \x1b[1;32m\x1b]8;;{}\x1b\\{}\x1b]8;;\x1b\\\x1b[0m\n\x1b[3m\x1b[2m{}\x1b[0m\n\x1b[2m{}\x1b[0m\n",
|
||||||
Link::new(&item.title, &item.link),
|
item.link,
|
||||||
|
item.title,
|
||||||
utils::trim_chars(&item.description),
|
utils::trim_chars(&item.description),
|
||||||
item.pub_date.to_string()
|
item.pub_date.to_string()
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue