diff --git a/radicle-cli/examples/rad-patch.md b/radicle-cli/examples/rad-patch.md index 54b77ce9..503fa738 100644 --- a/radicle-cli/examples/rad-patch.md +++ b/radicle-cli/examples/rad-patch.md @@ -143,6 +143,23 @@ $ rad patch comment aa45913 --message 'My favorite decade!' --reply-to 686ec1c - f4336e42daf76342f787d574b5ee779d89d05c7a ``` +If we realize we made a mistake in the comment, we can go back and edit it: + +``` +$ rad patch comment aa45913 --edit 686ec1c --message 'I cannot wait to get back to the 80s!' --no-announce +╭───────────────────────────────────────╮ +│ alice (you) now 686ec1c │ +│ I cannot wait to get back to the 80s! │ +╰───────────────────────────────────────╯ +``` + +And if we really made a mistake, then we can redact the comment entirely: + +``` +$ rad patch comment aa45913 --redact f4336e4 --no-announce +✓ Redacted comment f4336e42daf76342f787d574b5ee779d89d05c7a +``` + Now, let's checkout the patch that we just created: ``` diff --git a/radicle-cli/src/commands/patch.rs b/radicle-cli/src/commands/patch.rs index c2bfc9c3..97fea51b 100644 --- a/radicle-cli/src/commands/patch.rs +++ b/radicle-cli/src/commands/patch.rs @@ -18,6 +18,8 @@ mod edit; mod label; #[path = "patch/list.rs"] mod list; +#[path = "patch/react.rs"] +mod react; #[path = "patch/ready.rs"] mod ready; #[path = "patch/redact.rs"] @@ -33,11 +35,12 @@ mod update; use std::collections::BTreeSet; use std::ffi::OsString; +use std::str::FromStr as _; use anyhow::anyhow; use radicle::cob::patch::PatchId; -use radicle::cob::{patch, Label}; +use radicle::cob::{patch, Label, Reaction}; use radicle::git::RefString; use radicle::patch::cache::Patches as _; use radicle::storage::git::transport; @@ -67,6 +70,7 @@ Usage rad patch resolve [--review ] [--comment ] [--unresolve] [