Parcourir la source

Chore: Improve create-project install UX

Provides feedback output before a potentially long wait on getBestCandidate() call on slow network connections where unresponsiveness/hang may be assumed.
polarathene il y a 5 ans
Parent
commit
1b2582ff5b
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/Composer/Command/CreateProjectCommand.php

+ 2 - 0
src/Composer/Command/CreateProjectCommand.php

@@ -285,6 +285,8 @@ EOT
             $directory = getcwd() . DIRECTORY_SEPARATOR . array_pop($parts);
         }
 
+        $io->writeError('<info>Creating a "' . $packageName . '" project at "' . $directory . '"</info>');
+
         $fs = new Filesystem();
         if (file_exists($directory)) {
             if (!is_dir($directory)) {