mo8it
787bec9875
Use exercises as leaked
2024-04-09 21:16:27 +02:00
mo8it
18342b3aa3
Verify starting with some index
2024-04-07 01:16:56 +02:00
mo8it
b0f19fd862
Start with the TUI
2024-04-05 03:04:53 +02:00
mo8it
157fe016e5
Remove ui.rs
2024-04-05 00:49:22 +02:00
mo8it
34375b2ebf
Clean up as a preparation for the TUI
2024-04-04 21:06:11 +02:00
mo8it
1885ece2dc
Merge branch 'main'
2024-04-04 15:31:59 +02:00
mo8it
def8d2c569
Add VerifyState
2024-04-01 18:38:01 +02:00
mo8it
fdd7de00bd
Improvements to verify
2024-04-01 18:21:56 +02:00
mo8it
c1de4d46aa
Some improvements to error handling
2024-03-31 18:25:54 +02:00
mo8it
82b563f165
Use Cargo instead of rustc
2024-03-31 16:55:33 +02:00
Dan
30273a6ee5
Merge branch 'main' into main
2024-03-29 18:29:38 +00:00
mo8it
a27741b131
Merge branch 'main' into performance
2024-03-27 15:00:57 +01:00
mo8it
980ffa2a2b
Use == on simple enums
2024-03-26 17:49:48 +01:00
mo8it
ed0fcf8e3d
Formatting
2024-03-26 17:49:05 +01:00
mo8it
01b7d6334c
Remove unneeded to_string call
2024-03-23 22:08:25 +01:00
Dan Bond
eb952a480d
verify: fix success message spacing
...
Signed-off-by: Dan Bond <danbond@protonmail.com>
2024-03-18 16:47:54 -07:00
Kazuki Matsuo
80388c042b
fix(verify): show stdout of the last line
2024-03-16 13:56:34 +09:00
liv
d79984dbda
Merge pull request #1637 from mo8it/fix-warnings
...
Run clippy --fix
2023-08-28 13:38:21 +02:00
mo8it
c0b8af2c42
Fix indicatif
2023-08-26 23:35:07 +02:00
mo8it
571bab20c1
Run clippy --fix
2023-08-26 23:07:20 +02:00
Romain Bayle
5d3696a9e6
feat(cli): added success-hints option for the rustlings command
...
closes #1373
2023-05-01 03:04:06 +02:00
Nidhal Messaoudi
1acbbb6d43
Fixing the progress percentage
2023-02-27 21:17:45 +01:00
himanshu soni
951826e6b5
fix(verify): progress bar proportion now updates with the number of files verified
2023-01-03 23:54:01 +09:30
liv
587e2d6dcd
Merge pull request #1220 from azzamsa/percentage
...
feat(verify): add progress percentage in watch mode
2022-10-14 10:30:32 +01:00
azzamsa
68388e5d4f
feat(verify): add progress percentage in watch mode
2022-10-14 05:28:49 +07: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
Ryan Lowe
6fae5d6114
Merge branch 'main' into progress-indicator
2022-04-20 23:29:47 -04:00
mokou
c811643d1e
chore: bump library versions
2022-04-20 09:35:08 +02:00
Ryan Lowe
9be012dda0
feat!: Add progress indicator
...
closes #360
BREAKING CHANGE: verify() has a new function signature so it can
know the current completion progress
2022-02-05 16:54:11 -05:00
Ben Armstead
1cd9328a58
fix(cli): remove unnecessary borrows ( #829 )
...
* Update dependencies
* Format better and remove unnecessary borrows
2021-08-24 14:06:30 +02:00
Zerotask
bd48544e25
style: formatted files with rustfmt
2021-04-18 15:40:47 +02:00
Matt Lebl
01e7f27aa6
refactor: change from match to if for NO_EMOJI
2021-03-20 11:53:40 -07:00
Matt Lebl
8d62a99637
feat: Replace emojis when NO_EMOJI env variable present
2021-03-19 02:16:07 -07:00
Étienne Barrié
81f8c2f83c
chore: Run cargo fmt
2020-08-10 10:42:54 -04:00
Alexx Roche
816b1f5e85
feat: Remind the user of the hint option ( #425 )
...
Suggestion from AbdouSeck https://github.com/rust-lang/rustlings/issues/424#issuecomment-639870331
for when the student's code has errors.
2020-07-08 11:52:23 +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
Abdou Seck
40741c5b0b
Use .to_string rather than format macro
2020-06-03 17:18:48 -04:00
Roberto Vidal
3b6d5c3aaa
feature: makes "compile" exercise print output, resolves #270
...
When running "compile"-mode exercises in interactive `verify` mode,
we print their output when we prompt the learner if they want to
continue. This improves the "experimentation" experience, since
trying different things does produce a visible change.
2020-04-06 16:17:14 +02: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
vyaslav
8143d57b4e
feat(watch): show hint while watching
2019-11-18 20:52:57 +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
Viacheslav Avramenko
1c4c8764ed
feat: Added exercise for struct update syntax
2019-10-21 14:50:59 +02: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
Andrew Bagshaw
4d7ce6e571
deduplicate
2019-03-13 13:53:24 -07:00
Andrew Bagshaw
3f114cc069
Start verification at most recently modified file
2019-03-13 13:50:54 -07:00
lyn
abf175111d
clippy-ify
2019-03-11 15:09:20 +01:00