Skip to content

Commit 9d87d02

Browse files
committed
TASK: Fix command names
1 parent 22ef2a1 commit 9d87d02

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed

src/Command/DeployCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ class DeployCommand extends Command
2727
*/
2828
protected static $defaultName = 'deploy';
2929

30+
public static function getDefaultName(): ?string
31+
{
32+
return 'deploy';
33+
}
34+
3035
public function __construct(FactoryInterface $factory)
3136
{
3237
parent::__construct();

src/Command/DescribeCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ class DescribeCommand extends Command
3535
*/
3636
protected static $defaultName = 'describe';
3737

38+
public static function getDefaultName(): ?string
39+
{
40+
return 'describe';
41+
}
42+
3843
public function __construct(FactoryInterface $factory)
3944
{
4045
parent::__construct();

src/Command/RollbackCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ public function __construct(FactoryInterface $factory)
3333
$this->factory = $factory;
3434
}
3535

36+
public static function getDefaultName(): ?string
37+
{
38+
return 'rollback';
39+
}
40+
3641
protected function configure(): void
3742
{
3843
$this->setDescription('Rollback current to previous release and remove current folder')

src/Command/ShowCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public function __construct(FactoryInterface $factory)
3232
$this->factory = $factory;
3333
}
3434

35+
public static function getDefaultName(): ?string
36+
{
37+
return 'show';
38+
}
39+
3540
protected function configure(): void
3641
{
3742
$this->setDescription('Shows all the deployments depending on the directory configuration')

src/Command/SimulateCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ public function __construct(FactoryInterface $factory)
3333
$this->factory = $factory;
3434
}
3535

36+
public static function getDefaultName(): ?string
37+
{
38+
return 'simulate';
39+
}
40+
3641
protected function configure(): void
3742
{
3843
$this->setDescription('Simulates the deployment for the given name')

0 commit comments

Comments
 (0)