diff options
Diffstat (limited to 'src/commands/show_workers.rs')
-rw-r--r-- | src/commands/show_workers.rs | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/commands/show_workers.rs b/src/commands/show_workers.rs deleted file mode 100644 index e20530a..0000000 --- a/src/commands/show_workers.rs +++ /dev/null @@ -1,34 +0,0 @@ -use termion::event::{Event, Key}; - -use crate::config::AppKeyMapping; -use crate::context::AppContext; -use crate::error::JoshutoResult; -use crate::event::process_event; -use crate::event::AppEvent; -use crate::ui::views::TuiWorkerView; -use crate::ui::TuiBackend; - -pub fn show_workers( - context: &mut AppContext, - backend: &mut TuiBackend, - _keymap_t: &AppKeyMapping, -) -> JoshutoResult { - context.flush_event(); - - loop { - backend.render(TuiWorkerView::new(context)); - - if let Ok(event) = context.poll_event() { - match event { - AppEvent::Termion(Event::Key(Key::Esc)) => { - break; - } - AppEvent::Termion(_) => { - context.flush_event(); - } - event => process_event::process_noninteractive(event, context), - }; - } - } - Ok(()) -} |