feat: add history item dates, extend timeago parser
This commit is contained in:
parent
65ada37214
commit
320a8c2c24
28 changed files with 6507 additions and 2160 deletions
|
|
@ -54,6 +54,9 @@ struct Cli {
|
|||
/// YouTube content country
|
||||
#[clap(long, global = true)]
|
||||
country: Option<String>,
|
||||
/// Use authentication
|
||||
#[clap(long, global = true)]
|
||||
auth: bool,
|
||||
#[clap(long, global = true)]
|
||||
/// RustyPipe cache file
|
||||
cache_file: Option<PathBuf>,
|
||||
|
|
@ -653,6 +656,9 @@ async fn run() -> anyhow::Result<()> {
|
|||
if let Some(country) = cli.country {
|
||||
rp = rp.country(Country::from_str(&country.to_ascii_uppercase()).expect("invalid country"));
|
||||
}
|
||||
if cli.auth {
|
||||
rp = rp.authenticated();
|
||||
}
|
||||
let rp = rp.build()?;
|
||||
|
||||
match cli.command {
|
||||
|
|
|
|||
Reference in a new issue