diff --git a/radicle-cli/examples/rad-clone.md b/radicle-cli/examples/rad-clone.md index a601d5d7..06a8b184 100644 --- a/radicle-cli/examples/rad-clone.md +++ b/radicle-cli/examples/rad-clone.md @@ -58,3 +58,13 @@ Date: Mon Jan 1 14:39:16 2018 +0000 Second commit ``` + +Cloned repositories show up in `rad ls`: +``` +$ rad ls +╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Name RID Visibility Head Description │ +├───────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ heartwood rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji public f2de534 Radicle Heartwood Protocol & Stack │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +``` diff --git a/radicle-cli/examples/rad-init-private-clone.md b/radicle-cli/examples/rad-init-private-clone.md index 667ab58d..545ef258 100644 --- a/radicle-cli/examples/rad-init-private-clone.md +++ b/radicle-cli/examples/rad-init-private-clone.md @@ -1,5 +1,5 @@ Given a private repo `rad:z2ug5mwNKZB8KGpBDRTrWHAMbvHCu` belonging to Alice, -Bob tries to clone it, and even though he's connected to Alice, it fails. +Bob tries to fetch it, and even though he's connected to Alice, it fails. ``` ~bob $ rad track rad:z2ug5mwNKZB8KGpBDRTrWHAMbvHCu @@ -28,10 +28,17 @@ Bob can now fetch the private repo: $ rad sync rad:z2ug5mwNKZB8KGpBDRTrWHAMbvHCu --fetch ✓ Fetching rad:z2ug5mwNKZB8KGpBDRTrWHAMbvHCu from z6MknSL…StBU8Vi.. ✓ Fetched repository from 1 seed(s) -$ rad ls --private +$ rad ls --private --all ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Name RID Visibility Head Description │ ├───────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ heartwood rad:z2ug5mwNKZB8KGpBDRTrWHAMbvHCu private f2de534 radicle heartwood protocol & stack │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ``` + +Note that since we don't have our own fork of this repo, omitting the `--all` flag shows nothing: + +``` ~bob +$ rad ls --private +Nothing to show. +``` diff --git a/radicle-cli/src/commands/ls.rs b/radicle-cli/src/commands/ls.rs index c5bc37f0..d65310a5 100644 --- a/radicle-cli/src/commands/ls.rs +++ b/radicle-cli/src/commands/ls.rs @@ -16,10 +16,14 @@ Usage rad ls [