Browse Source

Merge pull request #12753 from cakephp/3.next-cli-paths

Consolidate path display
Mark Story 7 years ago
parent
commit
bc5493267a
2 changed files with 6 additions and 6 deletions
  1. 3 3
      src/Command/HelpCommand.php
  2. 3 3
      src/Shell/CommandListShell.php

+ 3 - 3
src/Command/HelpCommand.php

@@ -54,9 +54,9 @@ class HelpCommand extends Command implements CommandCollectionAwareInterface
     {
         if (!$args->getOption('xml')) {
             $io->out('<info>Current Paths:</info>', 2);
-            $io->out('* app:  ' . APP_DIR);
-            $io->out('* root: ' . rtrim(ROOT, DIRECTORY_SEPARATOR));
-            $io->out('* core: ' . rtrim(CORE_PATH, DIRECTORY_SEPARATOR));
+            $io->out('* app:  ' . APP_DIR . DIRECTORY_SEPARATOR);
+            $io->out('* root: ' . ROOT . DIRECTORY_SEPARATOR);
+            $io->out('* core: ' . CORE_PATH);
             $io->out('');
 
             $io->out('<info>Available Commands:</info>', 2);

+ 3 - 3
src/Shell/CommandListShell.php

@@ -74,9 +74,9 @@ class CommandListShell extends Shell
     {
         if (!$this->param('xml') && !$this->param('version')) {
             $this->out('<info>Current Paths:</info>', 2);
-            $this->out('* app:  ' . APP_DIR);
-            $this->out('* root: ' . rtrim(ROOT, DIRECTORY_SEPARATOR));
-            $this->out('* core: ' . rtrim(CORE_PATH, DIRECTORY_SEPARATOR));
+            $this->out('* app:  ' . APP_DIR . DIRECTORY_SEPARATOR);
+            $this->out('* root: ' . ROOT . DIRECTORY_SEPARATOR);
+            $this->out('* core: ' . CORE_PATH);
             $this->out('');
 
             $this->out('<info>Available Shells:</info>', 2);