cli: Use html comments for `rad comment`

Be consistent by using the same message style as 'rad patch' and 'rad
issue'
This commit is contained in:
Slack Coder 2023-06-05 14:52:33 -05:00 committed by Alexis Sellier
parent 16822ff84e
commit d335e1f3a5
No known key found for this signature in database
1 changed files with 5 additions and 1 deletions

View File

@ -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("<!--\nEnter a comment...\n-->")?;
let message = term::format::strip_comments(&message);
if message.is_empty() {
return Ok(());
}