Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Metrics/AllMetricsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string> */
private array $tableHeader = [
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Metrics/CpuCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string> */
private array $tableHeader = [
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Metrics/CurlCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Metrics/DiskUsageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string> */
private array $tableHeader = [
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Metrics/MemCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string> */
private array $tableHeader = [
Expand Down