浏览代码

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 5 年之前
父节点
当前提交
1b2582ff5b
共有 1 个文件被更改,包括 2 次插入0 次删除
  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)) {