cli: Add `rad patch archive --undo`
Allows archived patches to be reverted to open state.
3 files changed
+45
-9
ea31040e
→
0581c017
modified radicle-cli/src/commands/patch.rs
@@ -57,7 +57,7 @@ Usage
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -109,6 +109,10 @@ Assign options
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -204,6 +208,7 @@ pub enum Operation {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -347,6 +352,11 @@ impl Args for Options {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -591,6 +601,7 @@ impl Args for Options {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -726,9 +737,9 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-cli/src/commands/patch/archive.rs
@@ -3,13 +3,23 @@ use super::*;
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle/src/cob/patch.rs
@@ -2242,11 +2242,25 @@ where
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -2256,7 +2270,8 @@ where
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|