diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-24 11:37:17 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-24 11:45:31 +0200 |
commit | b0ba7c7d5329148495d9a676c3314a9a35e4ca18 (patch) | |
tree | 732f955ea0d5399f4cf20166171615728d237a0a /src/main.rs | |
parent | fix(cli/selectCommand): Explicitly set the aliases (diff) | |
download | yt-b0ba7c7d5329148495d9a676c3314a9a35e4ca18.tar.gz yt-b0ba7c7d5329148495d9a676c3314a9a35e4ca18.zip |
feat(cli/selectCommand/file): Allow re-use of the previous selection file
Diffstat (limited to '')
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 2bd7571..0f22c22 100644 --- a/src/main.rs +++ b/src/main.rs @@ -97,7 +97,10 @@ async fn main() -> Result<()> { let cmd = cmd.unwrap_or(SelectCommand::default()); match cmd { - SelectCommand::File { done } => select::select(&app, done).await?, + SelectCommand::File { + done, + use_last_selection, + } => select::select(&app, done, use_last_selection).await?, _ => handle_select_cmd(&app, cmd, None).await?, } } @@ -115,7 +118,6 @@ async fn main() -> Result<()> { dbg!(video); } }, - Command::Update { max_backlog, subscriptions, @@ -135,7 +137,6 @@ async fn main() -> Result<()> { update::update(&app, max_backlog, subscriptions, verbosity).await?; } - Command::Subscriptions { cmd } => match cmd { SubscriptionCommand::Add { name, url } => { subscribe::subscribe(&app, name, url) |