blob: 588425dfd759d072c1b8acfb8fccf13665944c8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
use crate::process::process_result::ProcessResult;
use crate::process::state::State;
use crate::todo_file::TodoFile;
use crate::view::view_data::ViewData;
use crate::view::View;
pub trait ProcessModule {
fn activate(&mut self, _rebase_todo: &TodoFile, _previous_state: State) -> ProcessResult {
ProcessResult::new()
}
fn deactivate(&mut self) {}
fn build_view_data(&mut self, _view: &View<'_>, _rebase_todo: &TodoFile) -> &ViewData;
fn handle_input(&mut self, _view: &mut View<'_>, _rebase_todo: &mut TodoFile) -> ProcessResult;
fn get_help_keybindings_descriptions(&self) -> Option<Vec<(String, String)>> {
None
}
}
|