Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: print success to console on `rad issue state`
Fintan Halpenny committed 1 year ago
commit f0390e00d9e1ef6de22d057935fd16757d9229d4
parent ffbdabe432feb66edcf7cb56b1a27c22736b64c7
2 files changed +20 -0
modified radicle-cli/examples/workflow/5-patching-maintainer.md
@@ -123,3 +123,12 @@ To publish our new state to the network, we simply push:
```
$ git push
```
+

+
Finally, we will close the issue that was opened for this
+
patch, marking it as solved:
+

+
```
+
$ rad issue state 9037b7a --solved
+
✓ Issue 9037b7a is now solved
+
✓ Synced with 1 node(s)
+
```
modified radicle-cli/src/commands/issue.rs
@@ -567,6 +567,17 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
            let id = id.resolve(&repo.backend)?;
            let mut issue = issues.get_mut(&id)?;
            issue.lifecycle(state, &signer)?;
+
            if !options.quiet {
+
                let success =
+
                    |status| term::success!("Issue {} is now {status}", term::format::cob(&id));
+
                match state {
+
                    State::Closed { reason } => match reason {
+
                        CloseReason::Other => success("closed"),
+
                        CloseReason::Solved => success("solved"),
+
                    },
+
                    State::Open => success("open"),
+
                };
+
            }
        }
        Operation::React {
            id,