cli: add `rad unblock` command
Add the rad unblock command for reversing the effect of blocking an RID.
Note that the unblock command also takes a scope, which defaults to all.
It was noticed that when adding the command without a scope, that the schema
defaults to followed. This seemed strange that the output of rad seed would
show the scope as all alongside the block policy, and then would change to
followed.
To allow setting the policy and the scope in one SQL statement, a new method
set_seedinge was also added.
7 files changed
+148
-1
468d5a46
→
52554af4
modified radicle-cli/examples/rad-block.md
@@ -41,3 +41,15 @@ $ rad seed
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified radicle-cli/src/commands.rs
@@ -52,6 +52,8 @@ pub mod rad_self;
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified radicle-cli/src/commands/help.rs
@@ -33,6 +33,7 @@ const COMMANDS: &[Help] = &[
|
|
|
|
|
|
| + | |
|
|
|
|
|
added radicle-cli/src/commands/unblock.rs
@@ -0,0 +1,97 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified radicle-cli/src/main.rs
@@ -291,6 +291,13 @@ fn run_other(exe: &str, args: &[OsString]) -> Result<(), Option<anyhow::Error>>
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle/src/node/policy.rs
@@ -139,11 +139,15 @@ impl TryFrom<&sqlite::Value> for Policy {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle/src/node/policy/store.rs
@@ -198,6 +198,30 @@ impl Store<Write> {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|