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

How should exit hooks be added/removed? #15

Open
CanadaHonk opened this issue Feb 9, 2024 · 0 comments
Open

How should exit hooks be added/removed? #15

CanadaHonk opened this issue Feb 9, 2024 · 0 comments
Labels
agenda+ Should be discussed next meeting spec

Comments

@CanadaHonk
Copy link
Member

Since we can exit, we should likely add exit hooks as suggested by @lucacasonato. How should they be added/removed? (also todo bikeshed exit hook or exit listener or ...)

Just like this?

const hook = () => console.log('Goodbye!');
CLI.addExitHook(hook);
// CLI.removeExitHook(hook);
@CanadaHonk CanadaHonk added the spec label Feb 9, 2024
@CanadaHonk CanadaHonk added the agenda+ Should be discussed next meeting label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agenda+ Should be discussed next meeting spec
Projects
None yet
Development

No branches or pull requests

1 participant