Skip to content

Commit 21cb816

Browse files
committed
Updates annotations to attributes
1 parent 64d29d4 commit 21cb816

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

src/LagoonCommands.php

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Drush\Commands\drupal_integrations;
44

55
use Consolidation\SiteAlias\SiteAliasManagerAwareTrait;
6+
use Drush\Attributes as CLI;
67
use Drush\Commands\DrushCommands;
78
use Drush\Drush;
89
use Drush\Exceptions\CommandFailedException;
@@ -86,11 +87,8 @@ public function __construct() {
8687

8788
/**
8889
* Get all remote aliases from lagoon API.
89-
*
90-
* @command lagoon:aliases
91-
*
92-
* @aliases la
9390
*/
91+
#[CLI\Command(name: 'lagoon:aliases', aliases: ['la'])]
9492
public function aliases() {
9593
$this->preCommandChecks();
9694
// Project still not defined, throw a warning.
@@ -124,31 +122,26 @@ public function aliases() {
124122

125123
/**
126124
* Generate a JWT token for the lagoon API.
127-
*
128-
* @command lagoon:jwt
129-
*
130-
* @aliases jwt
131125
*/
126+
#[CLI\Command(name: 'lagoon:jwt', aliases: ['jwt'])]
132127
public function generateJwt() {
133128
$this->preCommandChecks();
134129
$this->io()->writeln($this->getJwtToken());
135130
}
136131

137132
/**
138133
* Run pre-rollout tasks.
139-
*
140-
* @command lagoon:pre-rollout-tasks
141134
*/
135+
#[CLI\Command(name: 'lagoon:pre-rollout-tasks')]
142136
public function preRolloutTasks() {
143137
$this->preCommandChecks();
144138
$this->runRolloutTasks('pre');
145139
}
146140

147141
/**
148142
* Run post-rollout tasks.
149-
*
150-
* @command lagoon:post-rollout-tasks
151143
*/
144+
#[CLI\Command(name: 'lagoon:post-rollout-tasks')]
152145
public function postRolloutTasks() {
153146
$this->preCommandChecks();
154147
$this->runRolloutTasks('post');

0 commit comments

Comments
 (0)