diff options
| author | mo8it <mo8it@proton.me> | 2024-09-05 02:11:19 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-09-05 02:11:19 +0200 |
| commit | 2d0860fe1bd0aef512313617d8a26e9f118d2cd2 (patch) | |
| tree | e9ae5554f85dadf588c2566009fd3f275f47d366 /src/main.rs | |
| parent | 17877366b7d563077c1457d42cd500b5c2eefc7c (diff) | |
Hide input and disable its line buffering
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/main.rs b/src/main.rs index e53cd5a..fe4b3dc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,7 @@ use std::{ }; use term::{clear_terminal, press_enter_prompt}; -use self::{app_state::AppState, dev::DevCommands, info_file::InfoFile, watch::WatchExit}; +use self::{app_state::AppState, dev::DevCommands, info_file::InfoFile}; mod app_state; mod cargo_toml; @@ -130,15 +130,7 @@ fn main() -> Result<()> { ) }; - loop { - match watch::watch(&mut app_state, notify_exercise_names)? { - WatchExit::Shutdown => break, - // It is much easier to exit the watch mode, launch the list mode and then restart - // the watch mode instead of trying to pause the watch threads and correct the - // watch state. - WatchExit::List => list::list(&mut app_state)?, - } - } + watch::watch(&mut app_state, notify_exercise_names)?; } Some(Subcommands::Run { name }) => { if let Some(name) = name { |
