refactor!: clean up stdio interface

with an interface no less!
This commit is contained in:
2026-02-11 22:03:44 +01:00
parent ad740afb5f
commit 3a5cad161d
10 changed files with 159 additions and 114 deletions

View File

@@ -4,7 +4,15 @@ declare(strict_types=1);
namespace Nih\CommandBuilder;
final class ChildStdin
use Override;
final class ChildStdin implements StdioInterface
{
use StreamWritable;
#[Override]
public function getDescriptionSpec(int $fd): mixed
{
return $this->stream;
}
}