Skip to content

Commit 18dffe7

Browse files
committed
feat(edit): 🎉 remote edit dep, use dialoguer.
this is desc.
1 parent 4c48b21 commit 18dffe7

File tree

4 files changed

+8
-40
lines changed

4 files changed

+8
-40
lines changed

Cargo.lock

Lines changed: 0 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ console = "0.15.0"
2222
dialoguer = "0.10.1"
2323
git2 = "0.14.4"
2424
toml = "0.5.9"
25-
edit = "0.1.4"
2625
serde = { version = "1.0.137", features = ["derive"] }
2726

2827
[build-dependencies]

src/message.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use dialoguer::Confirm;
21
use dialoguer::{theme::ColorfulTheme, Input, Select};
2+
use dialoguer::{Confirm, Editor};
33

44
use crate::log::grc_err_println;
55
use crate::metadata::*;
@@ -218,7 +218,10 @@ impl Messager {
218218
.unwrap_or(false);
219219

220220
if has_description {
221-
edit::edit("").unwrap_or_else(|_| "".to_owned())
221+
Editor::new()
222+
.edit("commit descript.")
223+
.unwrap_or_else(|_| Some("".to_owned()))
224+
.unwrap_or_else(|| "".to_owned())
222225
} else {
223226
"".to_owned()
224227
}

src/version.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// auto generated by build.rs
21

2+
// auto generated by build.rs
3+
34
pub const NAME: &str = "grc";
45
pub const VERSION: &str = "1.3.0";
56
pub const AUTHOR: &str = "sdttttt <sdttttt@outlook.com>";
6-
pub const DESCRIPTION: &str =
7-
"Similar to git-cz, gcr will help you to provide a better Git experience.";
7+
pub const DESCRIPTION: &str = "Similar to git-cz, gcr will help you to provide a better Git experience.";

0 commit comments

Comments
 (0)