diff --git a/src/Command/Metrics/MetricsCommandBase.php b/src/Command/Metrics/AbstractMetricsCommandBase.php similarity index 99% rename from src/Command/Metrics/MetricsCommandBase.php rename to src/Command/Metrics/AbstractMetricsCommandBase.php index 51521e746..cc193a80f 100644 --- a/src/Command/Metrics/MetricsCommandBase.php +++ b/src/Command/Metrics/AbstractMetricsCommandBase.php @@ -28,7 +28,7 @@ use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; -abstract class MetricsCommandBase extends CommandBase +abstract class AbstractMetricsCommandBase extends CommandBase { private Io $io; private PropertyFormatter $propertyFormatter; diff --git a/src/Command/Metrics/AllMetricsCommand.php b/src/Command/Metrics/AllMetricsCommand.php index 2bffc6a01..5e279f6f3 100644 --- a/src/Command/Metrics/AllMetricsCommand.php +++ b/src/Command/Metrics/AllMetricsCommand.php @@ -16,7 +16,7 @@ use Symfony\Component\Console\Output\OutputInterface; #[AsCommand(name: 'metrics:all', description: 'Show CPU, disk and memory metrics for an environment', aliases: ['metrics', 'met'])] -class AllMetricsCommand extends MetricsCommandBase +class AllMetricsCommand extends AbstractMetricsCommandBase { /** @var array */ private array $tableHeader = [ diff --git a/src/Command/Metrics/CpuCommand.php b/src/Command/Metrics/CpuCommand.php index 97f4e7c7f..8ad5659ba 100644 --- a/src/Command/Metrics/CpuCommand.php +++ b/src/Command/Metrics/CpuCommand.php @@ -15,7 +15,7 @@ use Symfony\Component\Console\Output\OutputInterface; #[AsCommand(name: 'metrics:cpu', description: 'Show CPU usage of an environment', aliases: ['cpu'])] -class CpuCommand extends MetricsCommandBase +class CpuCommand extends AbstractMetricsCommandBase { /** @var array */ private array $tableHeader = [ diff --git a/src/Command/Metrics/CurlCommand.php b/src/Command/Metrics/CurlCommand.php index 063dbeec3..695ee63f9 100644 --- a/src/Command/Metrics/CurlCommand.php +++ b/src/Command/Metrics/CurlCommand.php @@ -12,7 +12,7 @@ use Symfony\Component\Console\Output\OutputInterface; #[AsCommand(name: 'metrics:curl', description: "Run an authenticated cURL request on an environment's metrics API")] -class CurlCommand extends MetricsCommandBase +class CurlCommand extends AbstractMetricsCommandBase { protected bool $hiddenInList = true; public function __construct(private readonly CurlCli $curlCli, private readonly Selector $selector) diff --git a/src/Command/Metrics/DiskUsageCommand.php b/src/Command/Metrics/DiskUsageCommand.php index 841795382..099765576 100644 --- a/src/Command/Metrics/DiskUsageCommand.php +++ b/src/Command/Metrics/DiskUsageCommand.php @@ -16,7 +16,7 @@ use Symfony\Component\Console\Output\OutputInterface; #[AsCommand(name: 'metrics:disk-usage', description: 'Show disk usage of an environment', aliases: ['disk'])] -class DiskUsageCommand extends MetricsCommandBase +class DiskUsageCommand extends AbstractMetricsCommandBase { /** @var array */ private array $tableHeader = [ diff --git a/src/Command/Metrics/MemCommand.php b/src/Command/Metrics/MemCommand.php index 007434c2f..8cead5faa 100644 --- a/src/Command/Metrics/MemCommand.php +++ b/src/Command/Metrics/MemCommand.php @@ -16,7 +16,7 @@ use Symfony\Component\Console\Output\OutputInterface; #[AsCommand(name: 'metrics:memory', description: 'Show memory usage of an environment', aliases: ['mem', 'memory'])] -class MemCommand extends MetricsCommandBase +class MemCommand extends AbstractMetricsCommandBase { /** @var array */ private array $tableHeader = [