Skip to content

Commit

Permalink
Enhance domain creation confirmation and feedback messages
Browse files Browse the repository at this point in the history
Add default confirmation for domain creation prompt to 'true'. Replace deprecated method with the correct one for retrieving environment UUIDs. Add feedback messages after each domain is created to improve user clarity.
  • Loading branch information
emerham committed Oct 3, 2024
1 parent 8678aab commit fa4f421
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Commands/DomainCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,22 +196,24 @@ public function createDevStageDomains(array $options = [
$stageDomain = $this->doAsk($stageDomainQuestion);
}

$makeItSo = $this->confirm("Do you want to create the Development:$devDomain and Staging:$stageDomain for $domainName?");
$makeItSo = $this->confirm("Do you want to create the Development:$devDomain and Staging:$stageDomain for $domainName?", TRUE);
if ($makeItSo) {
try {
$devEnvUuId = $this->getUuidFromName("dev");
$devEnvUuId = $this->getEnvUuIdFromApp($appUuId, 'dev');
}
catch (Exception $exception) {
$this->say($exception->getMessage());
}
try {
$stageEnvUuId = $this->getUuidFromName("test");
$stageEnvUuId = $this->getEnvUuIdFromApp($appUuId, 'test');
}
catch (Exception $exception) {
$this->say($exception->getMessage());
}
$this->createDomain($devEnvUuId, $devDomain);
$this->say("Created Development:$devDomain");
$this->createDomain($stageEnvUuId, $stageDomain);
$this->say("Created Staging:$stageDomain");
}
else {
$this->say("Aborting");
Expand Down

0 comments on commit fa4f421

Please sign in to comment.