cli/unfollow: Improvements around NID / DID parsing
This patch improves a few things:
- simpler error message when NID / DID parsing fails, also adds example values to help
- add a CLI test example that showcases
rad unfollow - add unit tests around NID / DID parsing
4 files changed
+76
-13
d9ce078d
→
6562e5c4
added crates/radicle-cli/examples/rad-unfollow.md
@@ -0,0 +1,24 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified crates/radicle-cli/src/commands/unfollow.rs
@@ -25,3 +25,36 @@ pub fn run(options: Args, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified crates/radicle-cli/src/commands/unfollow/args.rs
@@ -12,25 +12,26 @@ The `unfollow` command takes a Node ID, optionally in DID format,
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/tests/commands.rs
@@ -1216,6 +1216,11 @@ fn rad_unseed_many() {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|