feat(readarr): fetch the blocklist and expose it on the CLI
This commit is contained in:
7 files changed
+334
-3
No files matched your search
@@ -37,6 +37,8 @@ pub enum ReadarrListCommand {
|
||||
},
|
||||
#[command(about = "List all authors in your Readarr library")]
|
||||
Authors,
|
||||
#[command(about = "List all items in the Readarr blocklist")]
|
||||
Blocklist,
|
||||
#[command(about = "List all editions for the book with the given ID")]
|
||||
BookEditions {
|
||||
#[arg(
|
||||
@@ -175,6 +177,13 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, ReadarrListCommand> for ReadarrListComman
|
||||
.await?;
|
||||
serde_json::to_string_pretty(&resp)?
|
||||
}
|
||||
ReadarrListCommand::Blocklist => {
|
||||
let resp = self
|
||||
.network
|
||||
.handle_network_event(ReadarrEvent::GetBlocklist.into())
|
||||
.await?;
|
||||
serde_json::to_string_pretty(&resp)?
|
||||
}
|
||||
ReadarrListCommand::BookEditions { book_id } => {
|
||||
let resp = self
|
||||
.network
|
||||
|
||||
Reference in new issue
Block a user