Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli/unfollow: rename options to args
Fintan Halpenny committed 6 months ago
commit 42b526715e4998d2cfd9349be9c7c4c53a1fc57f
parent ef034daf538c2c3312bca9fca00e070cf39a517a
1 file changed +2 -2
modified crates/radicle-cli/src/commands/unfollow.rs
@@ -7,10 +7,10 @@ use crate::terminal as term;
pub use args::Args;
pub(crate) use args::ABOUT;

-
pub fn run(options: Args, ctx: impl term::Context) -> anyhow::Result<()> {
+
pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
    let profile = ctx.profile()?;
    let mut node = radicle::Node::new(profile.socket());
-
    let nid = options.nid;
+
    let nid = args.nid;

    let unfollowed = match node.unfollow(nid) {
        Ok(updated) => updated,