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

Introduce withRethrowPanics option #883

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nervo
Copy link
Contributor

@nervo nervo commented Dec 11, 2023

This option makes bubbletea silently recovers panics, shutdown itself, and rethrows panics for a possible handling at a higher/lower level.

In my use case, i would like to centralize the panics, not being "polluted" by terminal outputs. As the bubbletea shutdown method is not public, and is the only way to gracefully restore the terminal, the only way seems to add such an option.

Pleas note that i'm not fully satisfied by the option name withRethrowPanics, i'm totally open to suggestions :)

@aymanbagabas aymanbagabas deleted the branch charmbracelet:main October 28, 2024 17:41
@aymanbagabas aymanbagabas reopened this Oct 28, 2024
@aymanbagabas aymanbagabas changed the base branch from master to main October 28, 2024 17:54
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.

2 participants