Skip to content

Commit

Permalink
fix: set raw output using --execute (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi committed Nov 9, 2022
1 parent 07b32ef commit 5062061
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Console/TinkerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ public function handle()
$this->getCasters()
);

if ($this->option('execute')) {
$config->setRawOutput(true);
}

$shell = new Shell($config);
$shell->addCommands($this->getCommands());
$shell->setIncludes($this->argument('include'));
Expand Down

0 comments on commit 5062061

Please sign in to comment.