From 260d0b09c54251c8d79acb327757b702d8fc4078 Mon Sep 17 00:00:00 2001 From: Deeka Wong Date: Thu, 10 Nov 2022 08:09:37 +0800 Subject: [PATCH] Set raw output when using `--execute` (#62) * Set raw output when using `--execute` * Update tests.yaml Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com> --- src/Command/TinkerCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Command/TinkerCommand.php b/src/Command/TinkerCommand.php index a8d5acd..af3cc64 100644 --- a/src/Command/TinkerCommand.php +++ b/src/Command/TinkerCommand.php @@ -70,6 +70,10 @@ public function handle() $this->getCasters() ); + if ($this->input->getOption('execute')) { + $config->setRawOutput(true); + } + $shell = new Shell($config); $shell->addCommands($this->getCommands());