sebastianfeldmann/cli
Lightweight PHP library for building CLI tools: defines commands and options, parses argv, validates input, and renders help/usage output. Clean API for composing console applications with consistent argument handling and exit codes.
Full Changelog: https://github.com/sebastianfeldmann/cli/compare/3.4.1...3.4.2
Fix issue #15
Add variable handling support
Creating commands like
$ MYVAR='foo' mycommand --option='something'
Can now be created by using the Command::addVar(name, value) method
Fix windows escaping
Properly escape whitespaces on windows - thanks to @Gaitholabi
pipe overflow issue on windows - thanks to @pvandommelenDisable the Symfony default 60 second timeout
Add Symfony processor
Just some code cleanup and dependency updates
Add pipeFail feature
If active the command will use set -o pipefail; to fail the whole pipeline if one command in the pipeline fails.
Add pipeFail feature
If active the command will use set -o pipefail; to fail the whole pipeline if one command in the pipeline fails.
Drop php 7.0 support
Add new output utility class to handle empty line trimming
Fix issue #1 - Infinite look on empty stdOut
Sometimes you want to accept different exit codes then just 0. This is useful for binaries that exit with exit codes other then 0 to signal warnings or other maybe acceptable states. By setting those different exit codes as acceptable, you prevent the runner from throwing a runtime exception.
The Command and Processor interfaces had to be changed to support the new feature.
Some minor exception message enhancement
Add util class
Add output redirection info to results.
First stable release.
How can I help you explore Laravel packages today?