Commit graph

42 commits

Author SHA1 Message Date
mo8it c7590dd752 Improve the runner 2024-08-01 15:23:54 +02:00
mo8it 74fab994e2 Make the output optional 2024-07-28 20:30:23 +02:00
mo8it 1937b4bf66 Use the rexported crossterm from ratatui 2024-07-25 16:26:48 +02:00
mo8it 611f9d8722 Check that all solutions run successfully 2024-06-01 21:48:15 +02:00
mo8it c8481d35c1 Done documentation 2024-05-14 01:49:22 +02:00
mo8it f9e35a4344 Improve input handling 2024-05-13 02:32:25 +02:00
mo8it c82c367324 Respect the target-dir config and show tests' output 2024-04-27 04:14:59 +02:00
mo8it f92d45fa68 Use write macros instead of write_fmt 2024-04-25 02:03:26 +02:00
mo8it 67fa017742 Use os_pipe 2024-04-25 01:56:01 +02:00
mo8it 8a085a0a85 Dump solution and show its path 2024-04-24 02:52:30 +02:00
mo8it bee62c89de Add terminal links 2024-04-14 02:41:19 +02:00
mo8it 5c0073a948 Tolerate changes in the state file 2024-04-14 01:15:43 +02:00
mo8it 757723a7e8 Add missing newline 2024-04-12 19:30:36 +02:00
mo8it 06d1089714 Set pending on fail in run mode 2024-04-12 19:24:26 +02:00
mo8it d5a6dee1b3 Handle the case when all exercises are done 2024-04-12 18:57:04 +02:00
mo8it fa1f239a70 Remove "I AM NOT DONE" and the verify mode and add AppState 2024-04-11 02:51:02 +02:00
mo8it ee7d976283 Use a green color on successful run 2024-04-09 17:15:12 +02:00
mo8it 157fe016e5 Remove ui.rs 2024-04-05 00:49:22 +02:00
mo8it 5a233398eb Fix tests 2024-04-05 00:44:43 +02:00
mo8it 34375b2ebf Clean up as a preparation for the TUI 2024-04-04 21:06:11 +02:00
mo8it 7560aec66b Inline reset 2024-03-31 20:08:23 +02:00
mo8it 82b563f165 Use Cargo instead of rustc 2024-03-31 16:55:33 +02:00
mo8it 3ff9b0cd2a POC done 2024-03-28 22:11:16 +01:00
mo8it f36efae25d Only use arg instead of args AND arg 2024-03-26 17:48:06 +01:00
mo8it c0b8af2c42 Fix indicatif 2023-08-26 23:35:07 +02:00
Yuri Astrakhan 2940ad059d Apply uninlined-format-args clippy lint
This lint should also be applied to the excersies,
but I am not certain how to run it for all non-crate individual files.

To re-run:

```
rustup run nightly cargo clippy --fix -- -A clippy::all -W clippy::uninlined_format_args
```
2022-10-12 16:43:07 -04:00
magnusrodseth 6f44cb1dd2 feat: Add reset command, given a filename 2022-08-17 16:31:53 +02:00
mokou c811643d1e chore: bump library versions 2022-04-20 09:35:08 +02:00
Abdou Seck 8ad5f9bf53 feat: Add a --nocapture option to display test harnesses' outputs
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-04 11:18:26 -04:00
Mario Reder 1e2fd9c92f feat: Add clippy lints
- adds a new 'clippy' category for exercises
- clippy exercises should throw no warnings
- install script now also installs clippy

is related to https://github.com/rust-lang/rust-clippy/issues/2604
2020-02-26 14:07:07 +01:00
Roberto Vidal 43dc31193a refactor: exercise evaluation
Exercise evaluation (compilation + execution) now uses Results
Success/failure messages are standardized
2020-02-20 20:27:05 +01:00
Roberto Vidal 4b26546589 fix(run): makes run never prompt
`watch` and `verify` do prompt the user to actively move to the
next exercise. This change fixes `run` to never prompt. Previously
it was inconsistent between "test" and "compile" exercises.

BREAKING CHANGE: we again change the behavior of the `run` command
2019-11-12 11:35:40 +01:00
Roberto Vidal 2cdd61294f feat: improve watch execution mode
The `watch` command now requires user action to move to the next
exercise.

BREAKING CHANGE: this changes the behavior of `watch`.
2019-11-11 16:23:35 +01:00
Eddy Petrisor ca6bf966dd Cargo fmt the rustlings application code
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
2019-05-22 14:50:23 +03:00
Chris Pearce d01a71f7de Extract exercise struct to encapsulate path logic 2019-04-12 08:58:25 +01:00
Chris Pearce 4fa79ee02f Extract command builders into util 2019-04-07 17:26:01 +01:00
lyn abf175111d clippy-ify 2019-03-11 15:09:20 +01:00
lyn 70e59cca3c standardize exercise running via an external toml file 2019-03-06 21:47:33 +01:00
liv 320119ce96 add "--color always" to the other rustc commands 2019-01-25 15:11:23 +01:00
liv 141db7795b add --test run flag 2019-01-09 22:04:08 +01:00
liv e03a98cbf6 rustfmt 2019-01-09 20:33:58 +01:00
liv a388bb3798 split codebase 2019-01-09 20:33:43 +01:00