From ffbdabe432feb66edcf7cb56b1a27c22736b64c7 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Tue, 17 Sep 2024 12:44:30 +0100 Subject: [PATCH] cli: add comment edit for rad issue Add the ability to edit an issue comment to the `rad issue` command. This is achieved by adding an `--edit` option to `rad issue comment`. Note that if `--reply-to` and `--edit` are both specified, then this results in an error. --- radicle-cli/examples/rad-issue.md | 10 ++++++ radicle-cli/src/commands/issue.rs | 60 ++++++++++++++++++++++++++----- 2 files changed, 62 insertions(+), 8 deletions(-) diff --git a/radicle-cli/examples/rad-issue.md b/radicle-cli/examples/rad-issue.md index 21e23723..06951bfc 100644 --- a/radicle-cli/examples/rad-issue.md +++ b/radicle-cli/examples/rad-issue.md @@ -104,3 +104,13 @@ $ rad issue show d87dcfe8c2b3200e78b128d9b959cfdf7063fefe │ More power! │ ╰─────────────────────────────────────────────────────────╯ ``` + +We can also edit a comment: + +``` +$ rad issue comment d87dcfe --edit 880fdcd -m "Even more power!" +╭─────────────────────────╮ +│ alice (you) now 880fdcd │ +│ Even more power! │ +╰─────────────────────────╯ +``` diff --git a/radicle-cli/src/commands/issue.rs b/radicle-cli/src/commands/issue.rs index 8c6c5f6c..0fb0e3db 100644 --- a/radicle-cli/src/commands/issue.rs +++ b/radicle-cli/src/commands/issue.rs @@ -43,7 +43,7 @@ Usage rad issue react [--emoji ] [--to ] [