Skip to content

How should exit hooks be added/removed? #15

@CanadaHonk

Description

@CanadaHonk

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

Metadata

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