From 48a6ea4ac6babe7a093d6f93ee3b1ed20dbe5552 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 4 Oct 2021 19:06:17 +0200 Subject: [PATCH] wip #4797 @0:10 --- src/CommandLine.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5