jdx / demand

prompt library for rust
https://docs.rs/demand
MIT License
52 stars 3 forks source link

input - add support for validation #32

Closed roele closed 7 months ago

roele commented 7 months ago

Currently input does not support validation. A method should be added which takes a closure in the form of fn(input: &str) -> Result<(),Err(&str)> to validate the input and show an error message similar to multiselect.