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

[CLI] Feature: Add "next" to run the next unsolved exercise. #785

Merged
merged 4 commits into from
Jun 30, 2021

Conversation

jazzplato
Copy link
Contributor

Based on #783

This PR should allow users to use the following command to run the next unsolved exercise in the exercises vector.

rustlings run next

When there are no more unsolved exercises, it will print the following messages and exit with 1.

🎉 Congratulations! You have done all the exercises!
🔚 There are no more exercises to do next!

README.md Outdated Show resolved Hide resolved
@jazzplato
Copy link
Contributor Author

I realized the next keyword can also help hint subcommand, so I updated the README.md to elaborate this feature in the doc.

Copy link
Member

@shadows-withal shadows-withal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@shadows-withal shadows-withal merged commit d20e413 into rust-lang:main Jun 30, 2021
@shadows-withal
Copy link
Member

@all-contributors please add @jazzplato for code

@allcontributors
Copy link
Contributor

@fmoko

I've put up a pull request to add @jazzplato! 🎉

wh5a pushed a commit to wh5a/rustlings-solutions that referenced this pull request Jul 6, 2021
* upstream/main:
  docs: update .all-contributorsrc [skip ci]
  docs: update README.md [skip ci]
  docs: update .all-contributorsrc [skip ci]
  docs: update README.md [skip ci]
  feat(cli): Add "next" to run the next unsolved exercise. (rust-lang#785)
  chore: clippy1 hint enhancement
  Update info.toml
  docs: update .all-contributorsrc [skip ci]
  docs: update README.md [skip ci]
  chore: Update hint of iterators3
  docs: Faster git clone command
  fix(installation): first PowerShell command
noiffion pushed a commit to noiffion/rustlings that referenced this pull request Aug 20, 2021
* Add "run next" to run the next unsolved exercise.

* Fix a grammar error in the message.

* Update README.md with the suggested change

Co-authored-by: marisa <mokou@fastmail.com>

* Update the README.md for "rustlings hint next".

Co-authored-by: marisa <mokou@fastmail.com>
bugaolengdeyuxiaoer pushed a commit to bugaolengdeyuxiaoer/rustlings that referenced this pull request Dec 28, 2021
* Add "run next" to run the next unsolved exercise.

* Fix a grammar error in the message.

* Update README.md with the suggested change

Co-authored-by: marisa <mokou@fastmail.com>

* Update the README.md for "rustlings hint next".

Co-authored-by: marisa <mokou@fastmail.com>
ppp3 pushed a commit to ppp3/rustlings that referenced this pull request May 23, 2022
* Add "run next" to run the next unsolved exercise.

* Fix a grammar error in the message.

* Update README.md with the suggested change

Co-authored-by: marisa <mokou@fastmail.com>

* Update the README.md for "rustlings hint next".

Co-authored-by: marisa <mokou@fastmail.com>
dmoore04 pushed a commit to dmoore04/rustlings that referenced this pull request Sep 11, 2022
* Add "run next" to run the next unsolved exercise.

* Fix a grammar error in the message.

* Update README.md with the suggested change

Co-authored-by: marisa <mokou@fastmail.com>

* Update the README.md for "rustlings hint next".

Co-authored-by: marisa <mokou@fastmail.com>
Spacebody pushed a commit to Spacebody/my-rustlings that referenced this pull request Nov 18, 2022
* Add "run next" to run the next unsolved exercise.

* Fix a grammar error in the message.

* Update README.md with the suggested change

Co-authored-by: marisa <mokou@fastmail.com>

* Update the README.md for "rustlings hint next".

Co-authored-by: marisa <mokou@fastmail.com>
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