feat: Added config option to filter for specific disk space paths to display in the UI (CLI is unaffected)

This commit is contained in:
Dark-Alex-17 committed 2026-01-22 10:49:30 -07:00
1 parent 5f3123cd79
commit 3be7b09da8
12 files changed
+378 -10

No files matched your search

+5 -1
View File
@@ -2,6 +2,7 @@ use std::sync::Arc;
use anyhow::Result;
use clap::{Subcommand, arg};
use indoc::formatdoc;
use serde_json::json;
use tokio::sync::Mutex;
@@ -59,7 +60,10 @@ pub enum LidarrListCommand {
Artists,
#[command(about = "List all items in the Lidarr blocklist")]
Blocklist,
#[command(about = "List disk space details for all provisioned root folders in Sonarr")]
#[command(about = formatdoc!(
"List disk space details for all provisioned root folders in Lidarr
(returns unfiltered response; i.e. ignores 'monitored_storage_paths' config field)")
)]
DiskSpace,
#[command(about = "List all active downloads in Lidarr")]
Downloads {
+5 -1
View File
@@ -2,6 +2,7 @@ use std::sync::Arc;
use anyhow::Result;
use clap::{Subcommand, command};
use indoc::formatdoc;
use tokio::sync::Mutex;
use crate::{
@@ -27,7 +28,10 @@ pub enum RadarrListCommand {
#[arg(long, help = "How many downloads to fetch", default_value_t = 500)]
count: u64,
},
#[command(about = "List disk space details for all provisioned root folders in Radarr")]
#[command(about = formatdoc!(
"List disk space details for all provisioned root folders in Radarr
(returns unfiltered response; i.e. ignores 'monitored_storage_paths' config field)")
)]
DiskSpace,
#[command(about = "Fetch all Radarr history events")]
History {
+5 -1
View File
@@ -2,6 +2,7 @@ use std::sync::Arc;
use anyhow::Result;
use clap::Subcommand;
use indoc::formatdoc;
use tokio::sync::Mutex;
use crate::{
@@ -25,7 +26,10 @@ pub enum SonarrListCommand {
#[arg(long, help = "How many downloads to fetch", default_value_t = 500)]
count: u64,
},
#[command(about = "List disk space details for all provisioned root folders in Sonarr")]
#[command(about = formatdoc!(
"List disk space details for all provisioned root folders in Sonarr
(returns unfiltered response; i.e. ignores 'monitored_storage_paths' config field)")
)]
DiskSpace,
#[command(about = "List the episodes for the series with the given ID")]
Episodes {