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

Option for global onCancel #37

Closed
cacacaio opened this issue Feb 15, 2023 · 2 comments
Closed

Option for global onCancel #37

cacacaio opened this issue Feb 15, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@cacacaio
Copy link

Is your feature request related to a problem? Please describe.
It's kinda frustating to have to put a isCancel after each prompt.

Describe the solution you'd like
Somewhere I can define a onCancel, that always like exits the process for example.

Describe alternatives you've considered
Have an onCancel prop on each prompt, so that if you Ctrl + C it auto executes the function on the prop

@cacacaio cacacaio added the enhancement New feature or request label Feb 15, 2023
@natemoo-re
Copy link
Collaborator

Closed in #46, which will be released soon!

@natemoo-re
Copy link
Collaborator

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

2 participants