Feature suggestion: cli_ask
function combining cli::cli_alert
+ readline
#488
Labels
feature
a feature request or enhancement
I created a simple utility function that I thought may be helpful to consider as a possible addition to the cli package. I know there is already a related issue w/ #228 and you have similar functionality in your separate {ask} package but figured I'd open the issue for consideration. I'm using it to offer the user an opportunity to input a URL but I can imagine a variety of potential use cases. Here is the code I have currently:
If you're interested, let me know and I'm happy to open a pull request.
I also created a
cli_yeah
function that is a only very slightly modified version of theusethis::ui_yeah
function but I saw you previously flagged this function as "not relevant" for {cli} in the comments for #68. If you're interested in revisiting this, I'm happy to include it in the same PR withcli_ask
. Here is the code:The text was updated successfully, but these errors were encountered: