It would be nice to have some sort of an after hook added to promptui.Prompt{} struct so we can for example cast a received string to a number. So some sort of value a transformer:
I'd quite like this; I'm facing a scenario where I'd like to downcase strings. Right now I need to do this in my validate function and in whatever receives this input.
It would be nice to have some sort of an after hook added to promptui.Prompt{} struct so we can for example cast a received string to a number. So some sort of value a transformer:
Or does this not fall into what promptui should do?