You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/App/Script.php
+30-43Lines changed: 30 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -38,49 +38,40 @@ class Script
38
38
39
39
publicstaticfunctioninstall(Event$event): void
40
40
{
41
-
var_dump('getFlags', $event->getFlags());
42
-
var_dump('getArguments', $event->getArguments());
43
-
var_dump('getName', $event->getName());
44
-
var_dump('isDevMode', $event->isDevMode());
45
-
exit;
46
-
47
-
$serviceName = self::ask('What is the "micro-service" name?');
48
-
$resourceName = self::ask('What is the "resource" name?');
49
-
$answer = self::ask("Service name is [{$serviceName}] and resource name is [{$resourceName}], do you want to continue? y/n");
50
-
51
-
if ($answer === 'n' || $answer === 'no') {
52
-
echoPHP_EOL . 'Canceling...' . PHP_EOL;
53
-
exit(0);
41
+
$answers['Service_Name'] = $event->getIO()->ask("\n <question>>>> What is the 'micro-service' name?</question> [default: <comment>my service</comment>] ", 'my service');
42
+
$answers['Resource_Name'] = $event->getIO()->ask("\n <question>>>> What is the 'resource' name?</question> [default: <comment>my resource</comment>] ", 'my resource');
43
+
$answers['PHPStorm_Config'] = $event->getIO()->askConfirmation("\n <question>>>> Are you using PHPStorm? Do you want to auto add Docker image config?</question> (y/n) [default: <comment>yes</comment>] ", true);
44
+
if ($answers['PHPStorm_Config']) {
45
+
$event->getIO()->write("\n <info>>>> Please provide your AWS credentials</info>");
0 commit comments