Closed
Description
When running a prompt with an input validation, if you submit a value that fails validation, no error is returned back to let the upper program know.
Eg in this example: https://github.com/cqroot/prompt/blob/main/examples/input-with-validation/main.go, if you were to submit an invalid ip it just works. I believe the correct scenario would be that .Ask(...).Input(...)
would return "", <error returned from validation>
.
what happens in the validation example
prompt/examples/input-with-validation main ✔
▶ go run main.go
✔ Please enter the server IP: … invalid ip address
invalid ip address # this should be the "is not a valid ip" error
Metadata
Metadata
Assignees
Labels
No labels