feat(readarr): fetch all indexers and expose them on the CLI

This commit is contained in:
Dark-Alex-17 committed 2026-09-01 16:59:57 -06:00
1 parent c94b2a40d0
commit be5826f2c4
7 files changed
+218 -2

No files matched your search

+9
View File
@@ -93,6 +93,8 @@ pub enum ReadarrListCommand {
#[arg(long, help = "How many history events to fetch", default_value_t = 500)]
events: u64,
},
#[command(about = "List all Readarr indexers")]
Indexers,
#[command(about = "Fetch Readarr logs")]
Logs {
#[arg(long, help = "How many log events to fetch", default_value_t = 500)]
@@ -233,6 +235,13 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, ReadarrListCommand> for ReadarrListComman
.await?;
serde_json::to_string_pretty(&resp)?
}
ReadarrListCommand::Indexers => {
let resp = self
.network
.handle_network_event(ReadarrEvent::GetIndexers.into())
.await?;
serde_json::to_string_pretty(&resp)?
}
ReadarrListCommand::Logs {
events,
output_in_log_format,