nostrss icon indicating copy to clipboard operation
nostrss copied to clipboard

Improve CLI input forms

Open Asone opened this issue 1 year ago • 0 comments

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 avatar Jul 01 '23 06:07 Asone