Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Use html comments for `rad comment`
Slack Coder committed 2 years ago
commit d335e1f3a5a9e5e47eec76a0155304c7b80fcac6
parent 16822ff84ee14561576572780e3f8662b92e5458
1 file changed +5 -1
modified 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("<!--\nEnter a comment...\n-->")?;
+
    let message = term::format::strip_comments(&message);
    if message.is_empty() {
        return Ok(());
    }