]> _ Git - cubist_util.git/commitdiff
wait #5898 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 28 Jun 2023 08:45:25 +0000 (10:45 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 28 Jun 2023 08:45:25 +0000 (10:45 +0200)
src/CommandLine.php

index 7bcd850a24e67ea94af111f675930bdd94b2304b..05566bace455b2773959fef7e2b761813a4840dd 100644 (file)
@@ -322,4 +322,13 @@ class CommandLine
         $this->makeCommande();
         dd($this->getCommand());
     }
+
+    public function dump()
+    {
+        if (function_exists('dump')) {
+            dump($this->getCommand(), $this->getOutput());
+        } else {
+            echo $this->getCommand() . "\n\n" . $this->getOutput() . "\n\n";
+        }
+    }
 }