]> _ Git - cubist_util.git/commitdiff
wip #4797 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 4 Oct 2021 17:06:17 +0000 (19:06 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 4 Oct 2021 17:06:17 +0000 (19:06 +0200)
src/CommandLine.php

index 7c3b245ed8a936741a7d15cc4c5424287bb8d4b2..8572925f5f004a7ba126131d21783f82ff8f0e56 100644 (file)
@@ -253,6 +253,14 @@ class CommandLine
         file_put_contents('/tmp/' . $p . '.' . microtime(true) . '.txt', $this->commande . "\n\n" . file_get_contents($this->output));
     }
 
+    public function dd()
+    {
+        if (function_exists('dd')) {
+            dd($this->getCommand(), $this->getOutput());
+        } else {
+            die($this->getCommand() . "\n\n" . $this->getOutput());
+        }
+    }
 
     /**
      * @return string