-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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
ansible-console catches KeyboardInterrupt
silently
#68529
Comments
Files identified in the description: If these files are incorrect, please update the |
@farisachugthai: Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information. Here are the items we could not find in your description:
Please set the description of this issue with this template: |
@farisachugthai This issue is waiting for you to provide the requested data in the description. Please edit the description or the issue will be closed. |
I believe I've updated the issue appropriately. |
Files identified in the description:
If these files are incorrect, please update the |
Files identified in the description: If these files are incorrect, please update the |
- Fix Ctrl+C/D behavior (ansible#68529) - correct few typos and missing infos - Fixes doc (ansible#72195)
- Fix Ctrl+C/D behavior (ansible#68529) - correct few typos and missing infos - Fixes doc (ansible#72195)
- Fix Ctrl+C/D behavior (ansible#68529) - correct few typos and missing infos - Fixes doc (ansible#72195)
- Fix Ctrl+C/D behavior (ansible#68529) - correct few typos and missing infos - Fixes doc (ansible#72195)
- Fix Ctrl+C/D behavior (ansible#68529) - correct few typos and missing infos - Fixes doc (ansible#72195)
name: ✨ Feature request
about: Suggest an idea for this project
SUMMARY
Leave an exit message when catching
KeyboardInterrupt
in ansible/lib/consoleISSUE TYPE
COMPONENT NAME
ansible/lib/ansible/cli/console.py
ADDITIONAL INFORMATION
ansible/lib/ansible/cli/console.py
Line 112 in 0f5a63f
ansible-console
catches KeyboardInterrupt silently.This may confuse new users, and a simple 'Exiting REPL!' before that
self.do_exit
would probably be helpful for someone trying the REPL for the first time.I'll admit I was confused and didn't even realize I was back in my normal shell at first.
Alternatively, if this behavior could be made configurable with something as simple as a class or instance attribute or something that would amazing.
The text was updated successfully, but these errors were encountered: