From fa4f421200293ff3f51faab4a595a0564e237447 Mon Sep 17 00:00:00 2001 From: Matthew Brabham Date: Thu, 3 Oct 2024 14:55:56 -0700 Subject: [PATCH] Enhance domain creation confirmation and feedback messages 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. --- src/Commands/DomainCommand.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Commands/DomainCommand.php b/src/Commands/DomainCommand.php index 798a758..5a7381b 100644 --- a/src/Commands/DomainCommand.php +++ b/src/Commands/DomainCommand.php @@ -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");