rusty_cli/inputs/
vim_input.rs

1use dialoguer::Editor;
2
3pub struct VimInput {}
4
5impl VimInput {
6
7    /// Gets the edited message back
8    pub fn get_value(message_to_edit: String) -> Option<String> {
9        Editor::new().edit(message_to_edit.as_str()).unwrap()
10    }
11}