diff --git a/radicle-cli/examples/git/git-push.md b/radicle-cli/examples/git/git-push.md index 82a35633..8c27a8db 100644 --- a/radicle-cli/examples/git/git-push.md +++ b/radicle-cli/examples/git/git-push.md @@ -56,6 +56,6 @@ f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354 refs/heads/master ``` ``` -$ rad sync +$ rad sync --announce ✓ Synced with 1 node(s) ``` diff --git a/radicle-cli/examples/rad-sync.md b/radicle-cli/examples/rad-sync.md index 27329297..a319ab5c 100644 --- a/radicle-cli/examples/rad-sync.md +++ b/radicle-cli/examples/rad-sync.md @@ -11,7 +11,7 @@ Now let's run `rad sync`. This will announce the issue refs to the network and wait for nodes to announce that they have fetched those refs. ``` -$ rad sync +$ rad sync --announce ✓ Synced with 2 node(s) ``` @@ -19,7 +19,7 @@ If we try to sync again after the nodes have synced, we will get a timeout after one second, since the nodes will not emit any message: ``` (fail) -$ rad sync --timeout 1 +$ rad sync --announce --timeout 1 ✗ Syncing with 2 node(s).. ! Seed z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk timed out.. ! Seed z6Mkux1aUQD2voWWukVb5nNUR7thrHveQG4pDQua8nVhib7Z timed out.. diff --git a/radicle-cli/src/commands/sync.rs b/radicle-cli/src/commands/sync.rs index d4b85ec0..2542187d 100644 --- a/radicle-cli/src/commands/sync.rs +++ b/radicle-cli/src/commands/sync.rs @@ -21,16 +21,24 @@ Usage rad sync [] [