Add --auto-next flag to skip the post-success prompt in watch mode#2417
Closed
electron224 wants to merge 1 commit into
Closed
Add --auto-next flag to skip the post-success prompt in watch mode#2417electron224 wants to merge 1 commit into
electron224 wants to merge 1 commit into
Conversation
After passing an exercise, the watch loop currently waits for `n` before advancing. Add an opt-in `--auto-next` flag that renders the "Exercise done" screen for ~1.5s, then auto-advances to the next pending exercise and runs it. Auto-advance only fires on success; a failing exercise still stops at the prompt. The `n:next` key is hidden from the prompt when --auto-next is on, but the user can still press `n` to skip ahead manually. --auto-next is compatible with --manual-run: pressing `r` triggers a check, and on success the loop auto-advances the same way.
Contributor
|
closing for the same reason as #2411 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After passing an exercise, the watch loop currently waits for
nbefore advancing. Add an opt-in--auto-nextflag that renders the "Exercise done" screen for ~1.5s, then auto-advances to the next pending exercise and runs it. Auto-advance only fires on success a failing exercise still stops at the prompt.The
n:nextkey is hidden from the prompt when --auto-next is on, but the user can still pressnto skip ahead manually.--auto-next is compatible with --manual-run: pressing
rtriggers a check and on success the loop auto-advances the same way.