feat(cli): Support for refreshing all Sonarr series data

This commit is contained in:
2024-11-22 18:59:55 -07:00
parent 581975b941
commit 8864e2c867
6 changed files with 185 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ mod refresh_command_handler_tests;
#[derive(Debug, Clone, PartialEq, Eq, Subcommand)]
pub enum RadarrRefreshCommand {
#[command(about = "Refresh all movie data for all movies in your library")]
#[command(about = "Refresh all movie data for all movies in your Radarr library")]
AllMovies,
#[command(about = "Refresh movie data and scan disk for the movie with the given ID")]
Movie {
@@ -82,7 +82,7 @@ mod tests {
#[case(RadarrRefreshCommand::Collections, RadarrEvent::UpdateCollections)]
#[case(RadarrRefreshCommand::Downloads, RadarrEvent::UpdateDownloads)]
#[tokio::test]
async fn test_handle_list_blocklist_command(
async fn test_handle_refresh_command(
#[case] refresh_command: RadarrRefreshCommand,
#[case] expected_radarr_event: RadarrEvent,
) {