feat(readarr): fetch Readarr quality profiles and expose them on the CLI

This commit is contained in:
Dark-Alex-17 committed 2026-08-20 22:02:34 -06:00
1 parent 44d147ce37
commit 4a7cf922e8
4 files changed
+150 -1

No files matched your search

+9
View File
@@ -29,6 +29,8 @@ pub enum ReadarrListCommand {
)]
output_in_log_format: bool,
},
#[command(about = "List all Readarr quality profiles")]
QualityProfiles,
#[command(about = "List all queued events")]
QueuedEvents,
#[command(about = "List all Readarr tasks")]
@@ -88,6 +90,13 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, ReadarrListCommand> for ReadarrListComman
serde_json::to_string_pretty(&logs)?
}
}
ReadarrListCommand::QualityProfiles => {
let resp = self
.network
.handle_network_event(ReadarrEvent::GetQualityProfiles.into())
.await?;
serde_json::to_string_pretty(&resp)?
}
ReadarrListCommand::QueuedEvents => {
let resp = self
.network