11 lines
226 B
Rust
11 lines
226 B
Rust
use dialoguer::Editor;
|
|
|
|
fn main() {
|
|
if let Some(rv) = Editor::new().edit("Enter a commit message").unwrap() {
|
|
println!("Your message:");
|
|
println!("{}", rv);
|
|
} else {
|
|
println!("Abort!");
|
|
}
|
|
}
|