Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timeout and error handling to getStdIn method (#25)
* Add timeout and error handling to getStdIn method The getStdIn method in CliCommand.php now accepts a timeout parameter and includes error handling mechanisms for reading from STDIN. It implements a timeout during read operations and throws exceptions if the read operation fails or is timed out, enhancing robustness and failure mode handling. * Improve STDIN reading in getStdIn method The getStdIn function in CliCommand.php has been updated to better handle STDIN input. It now incorporates timeout and error handling features. This should enhance its robustness, particularly in case of read operation hurdles or timeout issues.
- Loading branch information