refactor(cli): Moved the manual-season-search and manual-episode-search commands into their own dedicated handler so the commands can now be manual-search episode or manual-search season

This commit is contained in:
2024-11-22 20:22:52 -07:00
parent 1b5979c36c
commit ffc00691cb
5 changed files with 309 additions and 184 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
use std::sync::Arc;
use anyhow::Result;
use clap::Subcommand;
use tokio::sync::Mutex;
@@ -106,7 +107,7 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, SonarrDownloadCommand>
}
}
async fn handle(self) -> anyhow::Result<String> {
async fn handle(self) -> Result<String> {
let result = match self.command {
SonarrDownloadCommand::Series {
guid,