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
@@ -209,9 +219,9 @@ protected function notifyIfOldCliVersion()
209
219
}
210
220
211
221
$this->output->write(PHP_EOL);
212
-
$this->output->write("<comment>This is an old version of the Statamic CLI Tool, please upgrade to {$this->shouldUpdateCliToVersion}!</comment>".PHP_EOL);
213
-
$this->output->write('<comment>If you have a global composer installation, you may upgrade by running the following command:</comment>'.PHP_EOL);
214
-
$this->output->write('<comment>composer global update statamic/cli</comment>'.PHP_EOL);
222
+
$this->output->write("<comment>This is an old version of the Statamic CLI Tool, please upgrade to {$this->shouldUpdateCliToVersion}!</comment>".PHP_EOL);
223
+
$this->output->write('<comment>If you have a global composer installation, you may upgrade by running the following command:</comment>'.PHP_EOL);
224
+
$this->output->write('<comment>composer global update statamic/cli</comment>'.PHP_EOL);
215
225
216
226
return$this;
217
227
}
@@ -294,15 +304,9 @@ protected function validateArguments()
@@ -416,7 +420,7 @@ protected function validateStarterKitLicense()
416
420
*/
417
421
protectedfunctionconfirmUnlistedKit()
418
422
{
419
-
if (! confirm('Starter kit not found on Statamic Marketplace! Install unlisted starter kit?')) {
423
+
if (! confirm('Starter kit not found on Statamic Marketplace. Install unlisted starter kit?')) {
420
424
return$this->exitInstallation();
421
425
}
422
426
@@ -448,34 +452,6 @@ protected function confirmSingleSiteLicense()
448
452
return$this;
449
453
}
450
454
451
-
/**
452
-
* Final confirmation
453
-
*
454
-
* @return $this
455
-
*/
456
-
protectedfunctionreadySetGo()
457
-
{
458
-
if (! $this->input->isInteractive()) {
459
-
return$this;
460
-
}
461
-
462
-
if (! confirm('Ready?', yes: "Yes, let's do this!", no: 'No, shut it down.')) {
463
-
return$this->exitInstallation();
464
-
}
465
-
466
-
if ($this->spreadJoy) {
467
-
if (PHP_OS_FAMILY == 'Darwin') {
468
-
exec('open https://github.com/statamic/cms');
469
-
} elseif (PHP_OS_FAMILY == 'Windows') {
470
-
exec('start https://github.com/statamic/cms');
471
-
} elseif (PHP_OS_FAMILY == 'Linux') {
472
-
exec('xdg-open https://github.com/statamic/cms');
473
-
}
474
-
}
475
-
476
-
return$this;
477
-
}
478
-
479
455
/**
480
456
* Install base project.
481
457
*
@@ -627,7 +603,8 @@ protected function askToMakeSuperUser()
627
603
628
604
$this->makeUser = confirm('Create a super user?', false);
629
605
630
-
$this->output->write($this->makeUser
606
+
$this->output->write(
607
+
$this->makeUser
631
608
? " Great. You'll be prompted for details after installation."
632
609
: ' No problem. You can create one later with <comment>php please make:user</comment>.'
633
610
);
@@ -648,6 +625,9 @@ protected function makeSuperUser()
648
625
return$this;
649
626
}
650
627
628
+
$this->output->write(PHP_EOL.PHP_EOL);
629
+
intro("Let's create your super user account.");
630
+
651
631
// Since Windows cannot TTY, we'll capture their input here and make a user.
652
632
if (PHP_OS_FAMILY === 'Windows') {
653
633
return$this->makeSuperUserInWindows();
@@ -758,13 +738,11 @@ protected function validatePassword($password)
758
738
*/
759
739
protectedfunctionshowSuccessMessage()
760
740
{
761
-
$this->output->writeln(PHP_EOL."<info>[✔] Statamic has been successfully installed into the <comment>{$this->relativePath}</comment> directory.</info>");
762
-
763
-
if (! $this->spreadJoy) {
764
-
$this->output->writeln('Spread some joy and star our GitHub repo! https://github.com/statamic/cms');
765
-
}
766
-
767
-
$this->output->writeln('Build something rad!');
741
+
$this->output->writeln(PHP_EOL.' <info>[✔] Statamic was installed successfully!</info>'.PHP_EOL);
742
+
$this->output->writeln(' You may now enter your project directory using <comment>cd '.$this->relativePath.'</comment>,'.PHP_EOL);
743
+
$this->output->writeln(' The documentation is always available at <info>statamic.dev</info> and you can ');
744
+
$this->output->writeLn(' join the community on Discord at <info>statamic.com/discord</info> anytime.'.PHP_EOL);
745
+
$this->output->writeLn(' Now go — it\'s time to create something wonderful! 🌟'.PHP_EOL);
768
746
769
747
return$this;
770
748
}
@@ -801,14 +779,20 @@ protected function askToSpreadJoy()
801
779
}
802
780
803
781
$response = select('Would you like to spread the joy of Statamic by starring the repo?', [
804
-
$yes = "Absolutely. I'll star it while you finish installing.",
782
+
$yes = "Absolutely",
805
783
$no = 'Maybe later',
806
784
], $no);
807
785
808
-
if ($this->spreadJoy = $response === $yes) {
809
-
$this->output->write(' Awesome. The browser will open when the installation begins.');
786
+
if ($response === $yes) {
787
+
if (PHP_OS_FAMILY == 'Darwin') {
788
+
exec('open https://github.com/statamic/cms');
789
+
} elseif (PHP_OS_FAMILY == 'Windows') {
790
+
exec('start https://github.com/statamic/cms');
791
+
} elseif (PHP_OS_FAMILY == 'Linux') {
792
+
exec('xdg-open https://github.com/statamic/cms');
793
+
}
810
794
} else {
811
-
$this->output->write(' You can star the GitHub repo at any time if you change your mind.');
795
+
$this->output->write('No problem. You can do it at <info>github.com/statamic/cms</info> anytime.');
812
796
}
813
797
814
798
$this->output->write(PHP_EOL.PHP_EOL);
@@ -952,22 +936,6 @@ protected function getStarterKitLicense()
952
936
returntext('Please enter your license key', required: true);
953
937
}
954
938
955
-
/**
956
-
* Exit installation.
957
-
*
958
-
* @return \stdClass
959
-
*/
960
-
protectedfunctionexitInstallation()
961
-
{
962
-
returnnewclass
963
-
{
964
-
publicfunction__call($method, $args)
965
-
{
966
-
return$this;
967
-
}
968
-
};
969
-
}
970
-
971
939
privatefunctionsearchStarterKits($value)
972
940
{
973
941
$kits = $this->getStarterKits();
@@ -1008,4 +976,19 @@ private function normalizeStarterKitSelection($kit)
0 commit comments