beryx / text-io

A library for creating interactive console applications in Java
http://text-io.beryx.org/
Apache License 2.0
342 stars 45 forks source link

Allow cumulative possible values and properties configurators #34

Open cdprete opened 2 years ago

cdprete commented 2 years ago

Hi. At the moment, the methods with[Numbered]PossibleValues and withPropertiesConfigurator only apply globally, aka to all the possible choices. It would be nice to be able to to define the possible values in a cumulative way and also pass the configurator to just that subset of possible values so to render them differently. I know I can print all the properties manually and use an int reader as workaround to have the same behaviour, but it's quite ugly.

Does this feature make sense to you?

Cheers