fix: handle stdio properly

This commit is contained in:
2025-08-17 13:55:24 +02:00
parent 4ae0545ab4
commit 5f6f5bf04b
15 changed files with 311 additions and 120 deletions

18
src/ExitStatus.php Normal file
View 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;
}
}