From d5c2fcc184f764f9d4bb5846a1182c6014316bdc Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 23 Aug 2024 18:20:26 +0200 Subject: feat(videos): Init --- src/cli.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index d3ec262..72ec877 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -61,6 +61,12 @@ pub enum Command { max_cache_size: Option, }, + /// Work with single videos + Videos { + #[command(subcommand)] + cmd: VideosCommand, + }, + /// Watch the already cached (and selected) videos Watch {}, @@ -125,6 +131,23 @@ impl Default for Command { } } +#[derive(Subcommand, Clone, Debug)] +pub enum VideosCommand { + /// List the videos in the database + #[command(visible_alias = "ls")] + List { + /// An optional search query to limit the results + #[arg(action = ArgAction::Append)] + search_query: Option, + }, + + /// Get detailed information about a video + Info { + /// The short hash of the video + hash: LazyExtractorHash, + }, +} + #[derive(Subcommand, Clone, Debug)] pub enum SubscriptionCommand { /// Subscribe to an URL -- cgit 1.4.1