Implement "continue at"

This commit is contained in:
mo8it
2024-04-07 04:59:22 +02:00
parent 4f69285375
commit b0a4750624
4 changed files with 65 additions and 38 deletions
+2 -2
View File
@@ -85,7 +85,7 @@ If you are just starting with Rustlings, run the command `rustlings init` to ini
exit(1);
}
let state = State::read_or_default(&exercises);
let mut state = State::read_or_default(&exercises);
match args.command {
None | Some(Subcommands::Watch) => {
@@ -94,7 +94,7 @@ If you are just starting with Rustlings, run the command `rustlings init` to ini
// `Init` is handled above.
Some(Subcommands::Init) => (),
Some(Subcommands::List) => {
list::list(&state, &exercises)?;
list::list(&mut state, &exercises)?;
}
Some(Subcommands::Run { name }) => {
let exercise = find_exercise(&name, &exercises)?;