Skip to content

Option for global onCancel #37

Description

@cacacaio

Is your feature request related to a problem? Please describe.
It's kinda frustating to have to put a isCancel after each prompt.

Describe the solution you'd like
Somewhere I can define a onCancel, that always like exits the process for example.

Describe alternatives you've considered
Have an onCancel prop on each prompt, so that if you Ctrl + C it auto executes the function on the prop

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions