summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-11 16:54:27 +0200
committermo8it <mo8it@proton.me>2024-04-11 16:54:27 +0200
commit6494a8c50be2e3b8fbd9bb0ae50d8dfbf0569e2a (patch)
tree354e672c486048e24695764a4774dbc0f1184322
parent864cfa725be9dc78b1b962f13c8b6a0bc971d4c4 (diff)
Remove the watch subcommand
-rw-r--r--src/main.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 926605c..7bc10ac 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -34,8 +34,6 @@ struct Args {
enum Subcommands {
/// Initialize Rustlings
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 {
/// 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);
match args.command {
- None | Some(Subcommands::Watch) => loop {
+ None => loop {
match watch(&mut app_state)? {
WatchExit::Shutdown => break,
// It is much easier to exit the watch mode, launch the list mode and then restart