Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add timedPrompt method #31

Merged
merged 2 commits into from
Mar 8, 2022
Merged

feat: add timedPrompt method #31

merged 2 commits into from
Mar 8, 2022

Conversation

mdonnalley
Copy link
Contributor

What does this PR do?

Adds a timedPrompt method to Prompter, so that we can timeout prompts when necessary

What issues does this PR fix or reference?

@W-10713661@

@mdonnalley mdonnalley marked this pull request as draft February 21, 2022 18:45
@mdonnalley mdonnalley self-assigned this Feb 21, 2022
@peternhale
Copy link
Collaborator

@mdonnalley do you have a specific example of why a timed prompt would be needed? I am not really seeing the value of this.

@mdonnalley
Copy link
Contributor Author

@mdonnalley do you have a specific example of why a timed prompt would be needed? I am not really seeing the value of this.

@peternhale I'm using it here salesforcecli/cli#172 to timeout the prompt that asks which command the user wants to run. In my mind it's a bad idea to let the prompt run indefinitely - but I could be convinced otherwise

@mdonnalley mdonnalley force-pushed the mdonnalley/timed-prompt branch from 8aa5f2e to d820070 Compare February 28, 2022 15:48
@mdonnalley mdonnalley marked this pull request as ready for review February 28, 2022 15:48
@mdonnalley mdonnalley force-pushed the mdonnalley/timed-prompt branch from 530ecc1 to 702b623 Compare March 2, 2022 18:30
@mdonnalley mdonnalley force-pushed the mdonnalley/timed-prompt branch from 702b623 to 7d3d023 Compare March 7, 2022 16:06
@mdonnalley mdonnalley merged commit 7dc372a into main Mar 8, 2022
@mdonnalley mdonnalley deleted the mdonnalley/timed-prompt branch March 8, 2022 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants