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

gum input: implement check for empty input #487

Open
D3vil0p3r opened this issue Jan 31, 2024 · 0 comments
Open

gum input: implement check for empty input #487

D3vil0p3r opened this issue Jan 31, 2024 · 0 comments
Labels
cmd/input enhancement New feature or request

Comments

@D3vil0p3r
Copy link

Is your feature request related to a problem? Please describe.
Currently I don't see a way in gum to prompt again the user to insert a text if the input is empty.

For example I have:

gum input --placeholder "Please enter your username"

I would like that, if the user inserts an empty value, gum should ask again for the input.

I think it could be easy to implement, for example adding a further argument/option for this purpose.

@caarlos0 caarlos0 added enhancement New feature or request cmd/input labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/input enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants