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

Check for interrupts in prompter. Exit immediately if interrupt detected #160

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

kylehodgetts
Copy link
Contributor

@kylehodgetts kylehodgetts commented Sep 14, 2021

This PR checks for interrupts in the wizard. If the user presses ctrl-c at any point, the wizard exits immediately.

resolves #158

Changes

  • check for promptui.ErrInterrupt when running any prompter

Fixes

  • issue where wizard flow would continue to the next question if ctrl-c was pressed

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@kylehodgetts kylehodgetts merged commit 74f3ad2 into main Sep 14, 2021
@kylehodgetts kylehodgetts deleted the kylehodgetts/bugfix/158-wizard-ctrl-c branch September 14, 2021 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wizard does not terminate on Ctrl-C
3 participants