summaryrefslogtreecommitdiff
path: root/src/main.rs
AgeCommit message (Collapse)Author
2021-02-09chore: Updated source to follow clippy suggestions.apogeeoak
2021-01-08feat(cli): Improve the list command with options, and then someAbdou Seck
1. `rustlings list` should now display more than just the exercise names. Information such as file paths and exercises statuses should be displayed. The `--paths` option limits the displayed fields to only the path names; while the `--names` option limits the displayed fields to only exercise names. You can also control which exercises are displayed, by using the `--filter` option, or the `--solved` or `--unsolved` flags. Some use cases: - Fetching pending exercise files with the keyword "conversion" to pass to my editor: ```sh vim $(rustlings list --filter "conversion" --paths --unsolved) ``` - Fetching exercise names with keyword "conversion" to pass to `rustlings run`: ```sh for exercise in $(rustlings list --filter "conversion" --names) do rustlings run ${exercise} done ``` 2. This should also fix #465, and will likely fix #585, as well. That bug mentioned in those issues has to do with the way the `watch` command handler fetches the pending exercises. Going forward, the least recently updated exercises along with all the other exercises in a pending state are fetched.
2020-12-29release: 4.3.0mokou
2020-11-11feat: Crab? (#586)Brock
Crab?
2020-11-10feat: add "rustlings list" commandCaleb Webber
2020-11-05fix: log error output when inotify limit is exceededCaleb Webber
closes #472
2020-08-10chore: Run cargo fmtÉtienne Barrié
2020-07-23feat(cli): Added 'cls' command to 'watch' mode (#474)Adi Vaknin
2020-06-14chore: Move from master branch to main branchmokou
2020-06-04feat: Add a --nocapture option to display test harnesses' outputsAbdou Seck
This new feature can be accessed by invoking rustlings with --nocapture. Both unit and integration tests added. closes #262 BREAKING CHANGES: The following function take a new boolean argument: * `run` * `verify` * `test` * `compile_and_test`
2020-06-04Collapse nested if statementsAbdou Seck
2020-02-20refactor: exercise evaluationRoberto Vidal
Exercise evaluation (compilation + execution) now uses Results Success/failure messages are standardized
2019-12-26feat: Show a completion message when watchingKate Hart
The completion message is shown only once all exercises succeed and are not annotated with "I AM NOT DONE." The watch command will also exit closes #251
2019-11-18feat(watch): show hint while watchingvyaslav
2019-11-11feat(cli): check for rustc before doing anythingRoberto Vidal
Addresses #190.
2019-11-11Address feedbackmarisa
2019-11-11Merge branch 'master' into refactor-hintsmarisa
2019-11-11feat(hint): Add test for hintmarisa
2019-11-11feat: Refactor hint systemmarisa
Hints are now accessible using the CLI subcommand `rustlings hint <exercise name`. BREAKING CHANGE: This fundamentally changes the way people interact with exercises.
2019-11-11feat: improve `watch` execution modeRoberto Vidal
The `watch` command now requires user action to move to the next exercise. BREAKING CHANGE: this changes the behavior of `watch`.
2019-11-11feat: Index exercises by namemarisa
BREAKING CHANGE: This changes the way you use `rustlings run` by now requiring an abridged form of the previous filename, e.g: `rustlings run exercises/if/if1.rs` becomes `rustlings run if1`
2019-11-09improvement(watch): clear screen before each `verify()`WofWca
Closes #146
2019-11-09watch: clears terminal before entering loopJubilee Young
If someone is sliding in and out of "watch" mode, it can make it hard to tell which error messages are still relevant. This patch resolves that by clearing the terminal entirely before entering watch's loop.
2019-07-11Check if changed exercise file exists before calling verify.Fredrik Jambrén
2019-06-10chore: Remove missed highlighting char from Issue #133Dan Wilhelm
2019-06-05Remove highlighting and syntectliv
2019-04-22add a slightly more helpful error messageliv
2019-04-12Remove unwrap on canonicalize resultChris Pearce
2019-04-12Extract exercise struct to encapsulate path logicChris Pearce
2019-04-07Fix test failing due to panicChris Pearce
2019-03-27fix watch command path executionliv
2019-03-17Be nicer when rustlings isn't run from the right directory.Kyle Isom
Before, rustlings would panic if it wasn't in the right directory. It took me a minute to figure out why, and this wasn't my first intro to Rust. It would probably help new users if they saw a helpful message instead of a stack trace.
2019-03-15Remove unnessecary whitespaceAndrew Bagshaw
2019-03-15Change to \nAndrew Bagshaw
2019-03-13Add clear break between verify executionsAndrew Bagshaw
2019-03-13Start verification at most recently modified fileAndrew Bagshaw
2019-03-11clippy-ifylyn
2019-03-06standardize exercise running via an external toml filelyn
2019-03-06Fix file watching for vim swap filesShaun Bennett
2019-01-23add more detailed command helpliv
2019-01-09add --test run flagliv
2019-01-09make the default output a bit nicerliv
2019-01-09rustfmtliv
2019-01-09split codebaseliv
2019-01-09ah well it was worth a tryliv
2019-01-09revertliv
2019-01-09update for rust 2018liv
2018-11-26Add watch mode, and don't panic on clean failureErik Vesteraas
2018-11-26switch theme to base16 eightiesolivia
2018-11-26Merge pull request #98 from evestera/rustc-color-alwaysolivia hugger
Propagate colored output from rustc