mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 23:36:30 +00:00
Remove the watch subcommand
This commit is contained in:
parent
864cfa725b
commit
6494a8c50b
1 changed files with 1 additions and 3 deletions
|
@ -34,8 +34,6 @@ struct Args {
|
||||||
enum Subcommands {
|
enum Subcommands {
|
||||||
/// Initialize Rustlings
|
/// Initialize Rustlings
|
||||||
Init,
|
Init,
|
||||||
/// Same as just running `rustlings` without a subcommand.
|
|
||||||
Watch,
|
|
||||||
/// Run a single exercise. Runs the next pending exercise if the exercise name is not specified.
|
/// Run a single exercise. Runs the next pending exercise if the exercise name is not specified.
|
||||||
Run {
|
Run {
|
||||||
/// The name of the exercise
|
/// The name of the exercise
|
||||||
|
@ -88,7 +86,7 @@ If you are just starting with Rustlings, run the command `rustlings init` to ini
|
||||||
let mut app_state = AppState::new(exercises);
|
let mut app_state = AppState::new(exercises);
|
||||||
|
|
||||||
match args.command {
|
match args.command {
|
||||||
None | Some(Subcommands::Watch) => loop {
|
None => loop {
|
||||||
match watch(&mut app_state)? {
|
match watch(&mut app_state)? {
|
||||||
WatchExit::Shutdown => break,
|
WatchExit::Shutdown => break,
|
||||||
// It is much easier to exit the watch mode, launch the list mode and then restart
|
// It is much easier to exit the watch mode, launch the list mode and then restart
|
||||||
|
|
Loading…
Reference in a new issue