laminas / laminas-cli

Console command runner, exposing commands written in Laminas MVC and Mezzio components and applications
https://docs.laminas.dev/laminas-cli
BSD 3-Clause "New" or "Revised" License
55 stars 22 forks source link

Provide ability to configure "array" parameters #23

Closed michalbundyra closed 4 years ago

michalbundyra commented 4 years ago

Feature Request

Q A
New Feature yes

Summary

I'd like to see an option to configure multiple values for parameters. It should straight forward for ChoiceParam as we are using ChoiceQuestion and we have there

ChoiceQuestion::setMultiselect(bool $multiselect)

but for other types we might need some additional changes.

Of course it does not make sense for BoolParam, but with others it would be nice. Probably we can add setter: setMultipleValues(bool) or something like that.

weierophinney commented 4 years ago

I'm currently working on this for the 0.1.0 release.

weierophinney commented 4 years ago

I have a working PoC - just need to get tests written! :tada: