feat(readarr): fetch the Readarr security config and expose it on the CLI

This commit is contained in:
Dark-Alex-17 committed 2026-08-20 16:15:34 -06:00
1 parent 1072585903
commit 97d67a6938
6 files changed
+117 -4

No files matched your search

+9
View File
@@ -20,6 +20,8 @@ mod get_command_handler_tests;
pub enum ReadarrGetCommand {
#[command(about = "Fetch the host config for your Readarr instance")]
HostConfig,
#[command(about = "Fetch the security config for your Readarr instance")]
SecurityConfig,
#[command(about = "Get the system status")]
SystemStatus,
}
@@ -58,6 +60,13 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, ReadarrGetCommand> for ReadarrGetCommandH
.await?;
serde_json::to_string_pretty(&resp)?
}
ReadarrGetCommand::SecurityConfig => {
let resp = self
.network
.handle_network_event(ReadarrEvent::GetSecurityConfig.into())
.await?;
serde_json::to_string_pretty(&resp)?
}
ReadarrGetCommand::SystemStatus => {
let resp = self
.network