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

Two-word prompt calls #142

Closed
mikaelmello opened this issue May 21, 2023 · 0 comments
Closed

Two-word prompt calls #142

mikaelmello opened this issue May 21, 2023 · 0 comments

Comments

@mikaelmello
Copy link
Owner

Is your feature request related to a problem? Please describe.

I'd like to be able to call inquire in-line with as few words as I can:

e.g.inquire::Text("Message:") would already call the prompt, no need for an extra prompt().

Describe the solution you'd like

Probably a prelude with prompt_text("Message:"), prompt_number("$"), prompt_confirm().

  • Using the same structs would be bad for backwards compatibility (UX).
  • Without the module name, likely being omitted with the help of an use statement, just Text() or text() is not meaningful enough.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant