Skip to content

[Request] support signal / AbortController in @clack/prompts (not just @clack/core)Β #337

@twitchard

Description

@twitchard

Is your feature request related to a problem? Please describe.
I was happily using @clack/prompts but needed to be able to abort the menu I was displaying to respond to asynchronous events and display an updated menu. AbortController is perfect for this but you can't pass the signal through to any of the @clack/prompts component.

Describe the solution you'd like
I'd just like each of the p.confirm, p.text components to accept (and pass through) an optional signal parameter.

Describe alternatives you've considered
I'm am using @clack/core directly.

Additional context
Happy to take a crack at contributing this, if the maintainers give the idea their blessing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions