fix: handle stdio properly
This commit is contained in:
18
src/ExitStatus.php
Normal file
18
src/ExitStatus.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Nih\CommandBuilder;
|
||||
|
||||
final class ExitStatus
|
||||
{
|
||||
public function __construct(
|
||||
public readonly int $code,
|
||||
) {
|
||||
}
|
||||
|
||||
public function success(): bool
|
||||
{
|
||||
return $this->code === 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user