Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Implement `seeds` control command
Alexis Sellier committed 3 years ago
commit a8531eff36e3a68c4809ea62f5fe380918949825
parent b542ddcd6c44f8e1768222f4cf2daee06c8c98aa
1 file changed +9 -0
modified radicle-node/src/control.rs
@@ -102,6 +102,15 @@ fn command<H: Handle<Error = runtime::HandleError, FetchResult = FetchResult>>(
                fetch(rid, node, LineWriter::new(stream), handle)?;
            }
        }
+
        Some(("seeds", arg)) => {
+
            let rid: Id = arg
+
                .parse()
+
                .map_err(|e| CommandError::InvalidCommandArg(arg.to_owned(), Box::new(e)))?;
+

+
            for seed in handle.seeds(rid)? {
+
                writeln!(writer, "{seed}")?;
+
            }
+
        }
        Some(("track-repo", arg)) => match arg.parse() {
            Ok(id) => match handle.track_repo(id) {
                Ok(updated) => {