Skip to content

Commit

Permalink
Set raw output when using --execute (#62)
Browse files Browse the repository at this point in the history
* Set raw output when using `--execute`

* Update tests.yaml

Co-authored-by: Deeka Wong <[email protected]>
  • Loading branch information
huangdijia and huangdijia committed Nov 10, 2022
1 parent 7ae85c7 commit 260d0b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Command/TinkerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 260d0b0

Please sign in to comment.