diff options
Diffstat (limited to 'src/input/mod.rs')
-rw-r--r-- | src/input/mod.rs | 42 |
1 files changed, 36 insertions, 6 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs index 63e76c4..3b6a599 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -1,8 +1,38 @@ -#[allow(clippy::module_inception)] -mod input; -mod input_handler; +pub(crate) mod input_handler; mod utils; -pub use self::input::Input; -pub use self::input_handler::InputHandler; -pub use self::utils::curses_input_to_string; +#[derive(Clone, Copy, Debug, PartialEq)] +pub(crate) enum Input { + Abort, + ActionBreak, + ActionDrop, + ActionEdit, + ActionFixup, + ActionPick, + ActionReword, + ActionSquash, + Backspace, + Character(char), + Delete, + Edit, + Enter, + ForceAbort, + ForceRebase, + Help, + MoveCursorDown, + MoveCursorLeft, + MoveCursorPageDown, + MoveCursorPageUp, + MoveCursorRight, + MoveCursorUp, + No, + OpenInEditor, + Other, + Rebase, + Resize, + ShowCommit, + SwapSelectedDown, + SwapSelectedUp, + ToggleVisualMode, + Yes, +} |