Skip to content

How should exit hooks be added/removed? #15

Open
@CanadaHonk

Description

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    agenda+Should be discussed next meetingspec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions