mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-24 14:37:32 -05:00
No more word input
This commit is contained in:
parent
f9e35a4344
commit
d2b5906be2
6 changed files with 8 additions and 8 deletions
|
@ -98,7 +98,7 @@ It will rerun the current exercise automatically every time you change the exerc
|
||||||
<details>
|
<details>
|
||||||
<summary><strong>If detecting file changes in the <code>exercises/</code> directory fails…</strong> (<em>click to expand</em>)</summary>
|
<summary><strong>If detecting file changes in the <code>exercises/</code> directory fails…</strong> (<em>click to expand</em>)</summary>
|
||||||
|
|
||||||
> You can add the **`--manual-run`** flag (`rustlings --manual-run`) to manually rerun the current exercise by entering `r` (or `run`) in the watch mode.
|
> You can add the **`--manual-run`** flag (`rustlings --manual-run`) to manually rerun the current exercise by entering `r` in the watch mode.
|
||||||
>
|
>
|
||||||
> Please [report the issue](https://github.com/rust-lang/rustlings/issues/new) with some information about your operating system and whether you run Rustlings in a container or virtual machine (e.g. WSL).
|
> Please [report the issue](https://github.com/rust-lang/rustlings/issues/new) with some information about your operating system and whether you run Rustlings in a container or virtual machine (e.g. WSL).
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ It will rerun the current exercise automatically every time you change the exerc
|
||||||
|
|
||||||
### Exercise List
|
### Exercise List
|
||||||
|
|
||||||
In the [watch mode](#watch-mode) (after launching `rustlings`), you can enter `l` (or `list`) to open the interactive exercise list.
|
In the [watch mode](#watch-mode) (after launching `rustlings`), you can enter `l` to open the interactive exercise list.
|
||||||
|
|
||||||
The list allows you to…
|
The list allows you to…
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// We sometimes encourage you to keep trying things on a given exercise, even
|
// We sometimes encourage you to keep trying things on a given exercise, even
|
||||||
// after you already figured it out. If you got everything working and feel
|
// after you already figured it out. If you got everything working and feel
|
||||||
// ready for the next exercise, enter `n` (or `next`) in the terminal.
|
// ready for the next exercise, enter `n` in the terminal.
|
||||||
//
|
//
|
||||||
// The exercise file will be reloaded when you change one of the lines below!
|
// The exercise file will be reloaded when you change one of the lines below!
|
||||||
// Try adding a new `println!`.
|
// Try adding a new `println!`.
|
||||||
|
|
|
@ -13,7 +13,7 @@ get started, here are some notes about how Rustlings operates:
|
||||||
the exercise file in your editor, fix errors and save the file. Rustlings will
|
the exercise file in your editor, fix errors and save the file. Rustlings will
|
||||||
automatically detect the file change and rerun the exercise. If all errors are
|
automatically detect the file change and rerun the exercise. If all errors are
|
||||||
fixed, Rustlings will ask you to move on to the next exercise.
|
fixed, Rustlings will ask you to move on to the next exercise.
|
||||||
3. If you're stuck on an exercise, enter `h` (or `hint`) to show a hint.
|
3. If you're stuck on an exercise, enter `h` to show a hint.
|
||||||
4. If an exercise doesn't make sense to you, feel free to open an issue on GitHub!
|
4. If an exercise doesn't make sense to you, feel free to open an issue on GitHub!
|
||||||
(https://github.com/rust-lang/rustlings). We look at every issue, and sometimes,
|
(https://github.com/rust-lang/rustlings). We look at every issue, and sometimes,
|
||||||
other learners do too so you can help each other out!
|
other learners do too so you can help each other out!
|
||||||
|
@ -35,7 +35,7 @@ name = "intro1"
|
||||||
dir = "00_intro"
|
dir = "00_intro"
|
||||||
test = false
|
test = false
|
||||||
# TODO: Fix hint
|
# TODO: Fix hint
|
||||||
hint = """Enter `n` (or `next`) followed by ENTER to move on to the next exercise"""
|
hint = """Enter `n` to move on to the next exercise. You might need to press ENTER after typing `n`."""
|
||||||
|
|
||||||
[[exercises]]
|
[[exercises]]
|
||||||
name = "intro2"
|
name = "intro2"
|
||||||
|
|
|
@ -56,7 +56,7 @@ fn press_enter_prompt() -> io::Result<()> {
|
||||||
struct Args {
|
struct Args {
|
||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
command: Option<Subcommands>,
|
command: Option<Subcommands>,
|
||||||
/// Manually run the current exercise using `r` or `run` in the watch mode.
|
/// Manually run the current exercise using `r` in the watch mode.
|
||||||
/// Only use this if Rustlings fails to detect exercise file changes.
|
/// Only use this if Rustlings fails to detect exercise file changes.
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
manual_run: bool,
|
manual_run: bool,
|
||||||
|
|
|
@ -123,5 +123,5 @@ The automatic detection of exercise file changes failed :(
|
||||||
Please try running `rustlings` again.
|
Please try running `rustlings` again.
|
||||||
|
|
||||||
If you keep getting this error, run `rustlings --manual-run` to deactivate the file watcher.
|
If you keep getting this error, run `rustlings --manual-run` to deactivate the file watcher.
|
||||||
You need to manually trigger running the current exercise using `r` (or `run`) then.
|
You need to manually trigger running the current exercise using `r` then.
|
||||||
";
|
";
|
||||||
|
|
|
@ -127,7 +127,7 @@ impl<'a> WatchState<'a> {
|
||||||
self.writer,
|
self.writer,
|
||||||
"{}\n",
|
"{}\n",
|
||||||
"Exercise done ✓
|
"Exercise done ✓
|
||||||
When you are done experimenting, enter `n` (or `next`) to move on to the next exercise 🦀"
|
When you are done experimenting, enter `n` to move on to the next exercise 🦀"
|
||||||
.bold()
|
.bold()
|
||||||
.green(),
|
.green(),
|
||||||
)?;
|
)?;
|
||||||
|
|
Loading…
Reference in a new issue