From: Vincent Vanwaelscappel Date: Mon, 4 Oct 2021 17:06:17 +0000 (+0200) Subject: wip #4797 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=48a6ea4ac6babe7a093d6f93ee3b1ed20dbe5552;p=cubist_util.git wip #4797 @0:10 --- diff --git a/src/CommandLine.php b/src/CommandLine.php index 7c3b245..8572925 100644 --- a/src/CommandLine.php +++ b/src/CommandLine.php @@ -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