zendframework / zend-stdlib

Stdlib component from Zend Framework
BSD 3-Clause "New" or "Revised" License
384 stars 76 forks source link

new feature: ConsoleHelper #63

Closed weierophinney closed 8 years ago

weierophinney commented 8 years ago

Provides the following:

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.

weierophinney commented 8 years ago

Ping @GeeH !

RalfEggert commented 8 years ago

Looks good, but I wonder why this is not added to Zend\Console.

weierophinney commented 8 years ago

@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.

RalfEggert commented 8 years ago

@weierophinney Thanks for clarification!

GeeH commented 8 years ago

All good.

:+1: