about summary refs log tree commit diff stats
path: root/crates/yt/src/commands/update/mod.rs
blob: 6f1c865fa494ab2c4cb87f36cd0c14cdb2f8c68d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use clap::Parser;
use clap_complete::ArgValueCompleter;

use crate::commands::complete_subscription;

mod implm;

#[derive(Parser, Debug)]
pub(crate) struct UpdateCommand {
    /// The maximal number of videos to fetch for each subscription.
    #[arg(short, long)]
    max_backlog: Option<usize>,

    /// The subscriptions to update
    #[arg(add = ArgValueCompleter::new(complete_subscription))]
    subscriptions: Vec<String>,
}