From 4eeb519ae5398b5b5f5c7d9938e3887cac2c9faf Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 24 Aug 2024 11:24:17 +0200 Subject: feat(videos): Allow limiting the number of videos to show --- src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 28a0b38..57e711d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -102,8 +102,11 @@ async fn main() -> Result<()> { } } Command::Videos { cmd } => match cmd { - VideosCommand::List { search_query } => { - videos::query(&app, search_query) + VideosCommand::List { + search_query, + limit, + } => { + videos::query(&app, limit, search_query) .await .context("Failed to query videos")?; } -- cgit 1.4.1