Skip to content

Commit

Permalink
Merge pull request #5 from smortexa/tty
Browse files Browse the repository at this point in the history
Disable TTY mode
  • Loading branch information
smortexa committed Aug 16, 2022
2 parents e201367 + 8b0636d commit 218bc13
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Console/TestArchitecture.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ public function handle(): int
}

Process::fromShellCommandline($command)
->setTty(true)
->run(fn ($type, $line) => $this->info($line));
->run(function ($type, $line) {
return match ($type) {
'err' => $this->line($line),
default => $this->info($line)
};
});

return static::SUCCESS;
}
Expand Down

0 comments on commit 218bc13

Please sign in to comment.