feat(cli): Support for listing the available disk space for all provisioned root folders in both Radarr and Sonarr

This commit is contained in:
2024-11-22 15:57:05 -07:00
parent a881d1f33a
commit df3cf70682
4 changed files with 22 additions and 0 deletions
+9
View File
@@ -24,6 +24,8 @@ pub enum RadarrListCommand {
Collections,
#[command(about = "List all active downloads in Radarr")]
Downloads,
#[command(about = "List disk space details for all provisioned root folders in Radarr")]
DiskSpace,
#[command(about = "List all Radarr indexers")]
Indexers,
#[command(about = "Fetch Radarr logs")]
@@ -109,6 +111,13 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, RadarrListCommand> for RadarrListCommandH
.await?;
serde_json::to_string_pretty(&resp)?
}
RadarrListCommand::DiskSpace => {
let resp = self
.network
.handle_network_event(RadarrEvent::GetDiskSpace.into())
.await?;
serde_json::to_string_pretty(&resp)?
}
RadarrListCommand::Indexers => {
let resp = self
.network