From d335e1f3a5a9e5e47eec76a0155304c7b80fcac6 Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Mon, 5 Jun 2023 14:52:33 -0500 Subject: [PATCH] cli: Use html comments for `rad comment` Be consistent by using the same message style as 'rad patch' and 'rad issue' --- radicle-cli/src/commands/comment.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radicle-cli/src/commands/comment.rs b/radicle-cli/src/commands/comment.rs index 4d5bace0..4b36c9ec 100644 --- a/radicle-cli/src/commands/comment.rs +++ b/radicle-cli/src/commands/comment.rs @@ -93,7 +93,11 @@ fn comment( repo: &storage::git::Repository, signer: impl Signer, ) -> anyhow::Result<()> { - let message = options.message.clone().get("Enter a comment...")?; + let message = options + .message + .clone() + .get("")?; + let message = term::format::strip_comments(&message); if message.is_empty() { return Ok(()); }