Skip to content

Commit fb27f76

Browse files
committed
Render a table with the updated feature for add-user, create, deactivate, everyone, and remove-user
1 parent cc903e8 commit fb27f76

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

src/Console/AddUserCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ public function handle()
3232
$userIdentifier = $this->argument('user');
3333

3434
$this->rollout->activateUser($name, new User($userIdentifier));
35+
36+
$this->renderFeatureAsTable($name);
3537
}
3638
}

src/Console/CreateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ class CreateCommand extends RolloutCommand
2626
public function handle()
2727
{
2828
$name = $this->argument('feature');
29-
$this->rollout->get($name);
29+
$this->renderFeatureAsTable($name);
3030
}
3131
}

src/Console/DeactivateCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ public function handle()
2929
{
3030
$name = $this->argument('feature');
3131
$this->rollout->deactivate($name);
32+
$this->renderFeatureAsTable($name);
3233
}
3334
}

src/Console/EveryoneCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ public function handle()
2929
{
3030
$name = $this->argument('feature');
3131
$this->rollout->activatePercentage($name, 100);
32+
$this->renderFeatureAsTable($name);
3233
}
3334
}

src/Console/RemoveUserCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ public function handle()
3232
$userIdentifier = $this->argument('user');
3333

3434
$this->rollout->deactivateUser($name, new User($userIdentifier));
35+
$this->renderFeatureAsTable($name);
3536
}
3637
}

0 commit comments

Comments
 (0)