Is your feature request related to a problem? Please describe.
I think have a onCancel property will be better.
Currently I need to call isCanceled in every prompts, I think it is troublesome.
Describe the solution you'd like
import{text,cancel}from'@clack/prompts'constresult=awaittext({/* Other options */onCancel(){cancel('Operation canceled.')process.exit(1)}})
Is your feature request related to a problem? Please describe.
I think have a
onCancelproperty will be better.Currently I need to call
isCanceledin every prompts, I think it is troublesome.Describe the solution you'd like