diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-24 11:24:17 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-24 11:45:25 +0200 |
commit | 4eeb519ae5398b5b5f5c7d9938e3887cac2c9faf (patch) | |
tree | 57340831cbb5d2f1842cf5c8a7c8fad4a00ba29d /src/main.rs | |
parent | fix(contrib/config.toml): Correct typo in config key (diff) | |
download | yt-4eeb519ae5398b5b5f5c7d9938e3887cac2c9faf.tar.gz yt-4eeb519ae5398b5b5f5c7d9938e3887cac2c9faf.zip |
feat(videos): Allow limiting the number of videos to show
Diffstat (limited to '')
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 5 insertions, 2 deletions
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")?; } |