From d4758c46af6ef1d2348ccbe3ea43539200ef065f Mon Sep 17 00:00:00 2001 From: Joe Tannenbaum Date: Mon, 20 Apr 2026 20:25:41 -0400 Subject: [PATCH] empty lists are valid and should be success --- app/Commands/ApplicationList.php | 2 +- app/Commands/BackgroundProcessList.php | 2 +- app/Commands/BucketKeyList.php | 2 +- app/Commands/BucketList.php | 2 +- app/Commands/CacheList.php | 2 +- app/Commands/CacheTypes.php | 2 +- app/Commands/DatabaseClusterList.php | 2 +- app/Commands/DatabaseList.php | 2 +- app/Commands/DatabaseSnapshotList.php | 2 +- app/Commands/DedicatedClusterList.php | 2 +- app/Commands/DeploymentList.php | 2 +- app/Commands/DomainList.php | 2 +- app/Commands/EnvironmentList.php | 2 +- app/Commands/InstanceList.php | 2 +- app/Commands/WebsocketApplicationList.php | 2 +- app/Commands/WebsocketClusterList.php | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/Commands/ApplicationList.php b/app/Commands/ApplicationList.php index f874568..735f845 100644 --- a/app/Commands/ApplicationList.php +++ b/app/Commands/ApplicationList.php @@ -39,7 +39,7 @@ public function handle() if ($applications->isEmpty()) { warning('No applications found.'); - return self::FAILURE; + return self::SUCCESS; } dataTable( diff --git a/app/Commands/BackgroundProcessList.php b/app/Commands/BackgroundProcessList.php index 9969367..c1d77cb 100644 --- a/app/Commands/BackgroundProcessList.php +++ b/app/Commands/BackgroundProcessList.php @@ -41,7 +41,7 @@ public function handle() if ($items->isEmpty()) { warning('No background processes found.'); - return self::FAILURE; + return self::SUCCESS; } dataTable( diff --git a/app/Commands/BucketKeyList.php b/app/Commands/BucketKeyList.php index 37cd97a..dca8e66 100644 --- a/app/Commands/BucketKeyList.php +++ b/app/Commands/BucketKeyList.php @@ -40,7 +40,7 @@ public function handle() if ($items->isEmpty()) { warning('No keys found.'); - return self::FAILURE; + return self::SUCCESS; } dataTable( diff --git a/app/Commands/BucketList.php b/app/Commands/BucketList.php index 65638a5..0ff5867 100644 --- a/app/Commands/BucketList.php +++ b/app/Commands/BucketList.php @@ -44,7 +44,7 @@ public function handle() if ($buckets->isEmpty()) { warning('No buckets found.'); - return self::FAILURE; + return self::SUCCESS; } dataTable( diff --git a/app/Commands/CacheList.php b/app/Commands/CacheList.php index 6179971..4bb5345 100644 --- a/app/Commands/CacheList.php +++ b/app/Commands/CacheList.php @@ -39,7 +39,7 @@ public function handle() if ($items->isEmpty()) { warning('No caches found.'); - return self::FAILURE; + return self::SUCCESS; } dataTable( diff --git a/app/Commands/CacheTypes.php b/app/Commands/CacheTypes.php index d2febd5..4b3bd03 100644 --- a/app/Commands/CacheTypes.php +++ b/app/Commands/CacheTypes.php @@ -37,7 +37,7 @@ public function handle() if ($items->isEmpty()) { warning('No cache types found.'); - return self::FAILURE; + return self::SUCCESS; } $rows = collect($types)->map(fn (CacheType $type, $index) => [ diff --git a/app/Commands/DatabaseClusterList.php b/app/Commands/DatabaseClusterList.php index 2398342..dae011f 100644 --- a/app/Commands/DatabaseClusterList.php +++ b/app/Commands/DatabaseClusterList.php @@ -39,7 +39,7 @@ public function handle() if ($items->isEmpty()) { warning('No databases found.'); - return self::FAILURE; + return self::SUCCESS; } dataTable( diff --git a/app/Commands/DatabaseList.php b/app/Commands/DatabaseList.php index 069af5b..cc8afec 100644 --- a/app/Commands/DatabaseList.php +++ b/app/Commands/DatabaseList.php @@ -40,7 +40,7 @@ public function handle() if ($databases->isEmpty()) { warning('No databases found.'); - return self::FAILURE; + return self::SUCCESS; } dataTable( diff --git a/app/Commands/DatabaseSnapshotList.php b/app/Commands/DatabaseSnapshotList.php index 458a013..0b3ba1a 100644 --- a/app/Commands/DatabaseSnapshotList.php +++ b/app/Commands/DatabaseSnapshotList.php @@ -42,7 +42,7 @@ public function handle() if ($items->isEmpty()) { warning('No snapshots found.'); - return self::FAILURE; + return self::SUCCESS; } dataTable( diff --git a/app/Commands/DedicatedClusterList.php b/app/Commands/DedicatedClusterList.php index 4bfbe87..d886c85 100644 --- a/app/Commands/DedicatedClusterList.php +++ b/app/Commands/DedicatedClusterList.php @@ -38,7 +38,7 @@ public function handle() if ($items->isEmpty()) { warning('No dedicated clusters found.'); - return self::FAILURE; + return self::SUCCESS; } $rows = $items->map(fn (DedicatedCluster $cluster) => [ diff --git a/app/Commands/DeploymentList.php b/app/Commands/DeploymentList.php index 1ec6a27..4455d68 100644 --- a/app/Commands/DeploymentList.php +++ b/app/Commands/DeploymentList.php @@ -39,7 +39,7 @@ public function handle() if ($items->isEmpty()) { warning('No deployments found.'); - return self::FAILURE; + return self::SUCCESS; } dataTable( diff --git a/app/Commands/DomainList.php b/app/Commands/DomainList.php index d0c9fa2..bfb3880 100644 --- a/app/Commands/DomainList.php +++ b/app/Commands/DomainList.php @@ -39,7 +39,7 @@ public function handle() if ($items->isEmpty()) { warning('No domains found.'); - return self::FAILURE; + return self::SUCCESS; } dataTable( diff --git a/app/Commands/EnvironmentList.php b/app/Commands/EnvironmentList.php index d93552a..3643c50 100644 --- a/app/Commands/EnvironmentList.php +++ b/app/Commands/EnvironmentList.php @@ -44,7 +44,7 @@ public function handle() if ($envItems->isEmpty()) { warning('No environments found.'); - return self::FAILURE; + return self::SUCCESS; } dataTable( diff --git a/app/Commands/InstanceList.php b/app/Commands/InstanceList.php index 6a01b68..ada9fef 100644 --- a/app/Commands/InstanceList.php +++ b/app/Commands/InstanceList.php @@ -40,7 +40,7 @@ public function handle() if ($items->isEmpty()) { warning('No instances found.'); - return self::FAILURE; + return self::SUCCESS; } dataTable( diff --git a/app/Commands/WebsocketApplicationList.php b/app/Commands/WebsocketApplicationList.php index bd573e8..87210cd 100644 --- a/app/Commands/WebsocketApplicationList.php +++ b/app/Commands/WebsocketApplicationList.php @@ -42,7 +42,7 @@ public function handle() if ($items->isEmpty()) { warning('No WebSocket applications found.'); - return self::FAILURE; + return self::SUCCESS; } dataTable( diff --git a/app/Commands/WebsocketClusterList.php b/app/Commands/WebsocketClusterList.php index 5e98edf..f39104b 100644 --- a/app/Commands/WebsocketClusterList.php +++ b/app/Commands/WebsocketClusterList.php @@ -41,7 +41,7 @@ public function handle() if ($items->isEmpty()) { warning('No WebSocket clusters found.'); - return self::FAILURE; + return self::SUCCESS; } dataTable(