Trait RecordInput

Source
pub trait RecordInput {
    // Required methods
    fn terminal_kind(&self) -> TerminalKind;
    fn next_events(&mut self) -> Result<Vec<Event>, RecordError>;
    fn edit_commit_message(
        &mut self,
        message: &str,
    ) -> Result<String, RecordError>;
}
Expand description

Get user input.

Required Methods§

Source

fn terminal_kind(&self) -> TerminalKind

Return the kind of terminal to use.

Source

fn next_events(&mut self) -> Result<Vec<Event>, RecordError>

Get all available user events. This should block until there is at least one available event.

Source

fn edit_commit_message(&mut self, message: &str) -> Result<String, RecordError>

Open a commit editor and interactively edit the given message.

This function will only be invoked if one of the provided Commits had a non-None commit message.

Implementors§