cli: Try to connect to seeds specified as options
When fetching with a --seed specified on the CLI, try to connect to it
if not already connected.
11 files changed
+111
-27
11a6ec5d
→
f6aa46a2
modified radicle-cli/examples/rad-init-private-seed.md
@@ -43,6 +43,6 @@ seed succeeds.
|
|
|
|
|
|
| - | |
| + | |
|
|
|
modified radicle-cli/examples/rad-sync.md
@@ -111,10 +111,10 @@ $ rad sync rad:z39mP9rQAaGmERfUMPULfPUi473tY
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-cli/src/commands/clone.rs
@@ -18,7 +18,6 @@ use radicle::node::{Handle as _, Node};
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -150,7 +149,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -226,6 +225,8 @@ pub enum CloneError {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -235,7 +236,7 @@ pub fn clone<G: Signer>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -247,8 +248,8 @@ pub fn clone<G: Signer>(
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -282,7 +283,7 @@ pub fn clone<G: Signer>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-cli/src/commands/remote/add.rs
@@ -33,6 +33,7 @@ pub fn run(
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle-cli/src/commands/seed.rs
@@ -150,6 +150,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle-cli/src/commands/sync.rs
@@ -8,6 +8,7 @@ use std::time;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -286,7 +287,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -437,21 +438,50 @@ pub fn announce_inventory(mut node: Node) -> anyhow::Result<()> {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
| - | |
| - | |
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -466,6 +496,11 @@ pub fn fetch(
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-node/src/control.rs
@@ -131,6 +131,11 @@ where
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-node/src/runtime/handle.rs
@@ -5,7 +5,7 @@ use std::sync::Arc;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -276,16 +276,7 @@ impl radicle::node::Handle for Handle {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -300,6 +291,23 @@ impl radicle::node::Handle for Handle {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-node/src/service/session.rs
@@ -144,6 +144,21 @@ impl fmt::Display for Session {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-node/src/test/handle.rs
@@ -112,6 +112,10 @@ impl radicle::node::Handle for Handle {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle/src/node.rs
@@ -567,6 +567,9 @@ pub enum Command {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1007,6 +1010,8 @@ pub trait Handle: Clone + Sync + Send {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -1322,6 +1327,15 @@ impl Handle for Node {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|