Closed weierophinney closed 8 years ago
Ping @GeeH !
Looks good, but I wonder why this is not added to Zend\Console
.
@RalfEggert I discussed that with @GeeH , and we had three possibilities open to us.
Action | Pros | Cons |
---|---|---|
Add to zend-console | Same domain, many utilities already present. | Adds zend-stdlib as an additional requirement; makes the code largely redundant. |
Create new repo | SRP, small footprint | Another component to maintain. |
Add to zend-stdlib | Most repos already require it; no additional dependencies; small footprint. | Appearance of duplication. |
Interestingly, zend-servicemanager, which is where we originally started developing this, has no requirements other than container-interop, which meant if we created the functionality elsewhere, it automatically means an additional requirement for the component. To keep requirements minimal, we felt the second and third options made most sense, and since this package already has infrastructure, felt the maintenance overhead would be better suited here.
@weierophinney Thanks for clarification!
All good.
:+1:
Provides the following:
STDOUT
for meaningful, expected outputSTDERR
for error messagesPHP_EOL
This feature is being developed to support some of the console tooling we've been creating, including:
Essentially, tools that have zero or small numbers of arguments that can be easily parsed manually, but for which we want to provide color output.