cli: Allow unseed to use repository name
- We try unseeding a repo by it’s name if the given arg is not a valid RID
- We error out if the name is ambiguous
$ cargo run -- unseed rips
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.09s
Running `/home/pksunkara/Coding/open/heartwood/target/debug/rad unseed rips`
✓ Seeding policy for rad:z3trNYnLWS11cJWC6BbxDs5niGo82 removed
1 file changed
+40
-7
e130b4dc
→
69e50e1a
modified radicle-cli/src/commands/unseed.rs
@@ -14,7 +14,7 @@ pub const HELP: Help = Help {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -27,7 +27,7 @@ Options
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -35,12 +35,12 @@ impl Args for Options {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -53,8 +53,8 @@ impl Args for Options {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -66,7 +66,40 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|