spring-shell
spring-shell copied to clipboard
Add Number Input (validation)
trafficstars
Adding a new type of input: NumberInput
It defaults to Integer and is basically a StringInput with a validation (similar to ConfirmInput)
- You can specify any number class
- Accept any format recognized by java from string (.5; 1.6e-3;...)
- Can be required (non-null)
@jvalkeal this looks like a good addition - any reason why it has not been merged ? Or is there a way we can add custom input handlers