Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CLI input forms #58

Open
Asone opened this issue Jul 1, 2023 · 0 comments
Open

Improve CLI input forms #58

Asone opened this issue Jul 1, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Asone
Copy link
Owner

Asone commented Jul 1, 2023

Current CLI implementation is still quite limited when validating inputs.

We can only apply a single validator to the input and the error message is way too generic.

We should refactor the way the input display, validation and error handling is done to allow the following :

  • As much validators we would want
  • Each validator should be able to provide its own error messages
  • Provide some tips when requesting user to provide some inputs.

As far as i've digged, i haven't found much crates to handle efficiently stdin, therefore, we could think about detaching such mechanisms to a standalone crate that then would be added as dependency to the CLI.

@Asone Asone added the enhancement New feature or request label Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant