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

Verify input when outside boundaries #109

Open
PossibleLlama opened this issue Feb 27, 2022 · 1 comment
Open

Verify input when outside boundaries #109

PossibleLlama opened this issue Feb 27, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@PossibleLlama
Copy link
Owner

Is your feature request related to a problem? Please describe.
Ability to specify conditions, which if the input doesn't match, it asks for stdin, or rejects.

Describe the solution you'd like
Within the config, a regex is supplied for each field (such as title), which is compared against when creating or editing. If the input doesn't match that, it seeks from stdin.

A command line arg (--verify-reject ?) can be used to ignore stdin and cause an exit code instead.

Use case

  • When using a card system setting a regex that the title must match.
  • Needing the when date to be within x days of now.
@PossibleLlama PossibleLlama added the enhancement New feature or request label Feb 27, 2022
@PossibleLlama
Copy link
Owner Author

PossibleLlama commented Jan 24, 2023

This will very much be a nice to have, but isn't a high priority especially now with a UI where we can perform this validation client side.
It would be useful to get the validation of fields other than when, as that will be the more difficult one to implement in an intuitive way in the config.

Potentially this whole issue will make more sense once the CLI has an interactive section and is asking for inputs.

@PossibleLlama PossibleLlama modified the milestone: v0.7.0 Jan 24, 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