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:
parent
16822ff84e
commit
d335e1f3a5
|
|
@ -93,7 +93,11 @@ fn comment(
|
||||||
repo: &storage::git::Repository,
|
repo: &storage::git::Repository,
|
||||||
signer: impl Signer,
|
signer: impl Signer,
|
||||||
) -> anyhow::Result<()> {
|
) -> 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() {
|
if message.is_empty() {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue