mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 14:00:31 +08:00
This keeps the top level of the repo cleaner, e.g. <https://github.com/radicle-dev/heartwood> scrolls less and <https://app.radicle.xyz/nodes/rosa.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/> might show more files at the top level. This way we also don't have to explicitly name all crates in `Cargo.toml`.
46 lines
3.0 KiB
Markdown
46 lines
3.0 KiB
Markdown
Let's say we have a local repository we've initialized:
|
|
|
|
```
|
|
$ rad ls
|
|
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ Name RID Visibility Head Description │
|
|
├───────────────────────────────────────────────────────────────────────────────────────────────────────────┤
|
|
│ heartwood rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji public f2de534 Radicle Heartwood Protocol & Stack │
|
|
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
```
|
|
|
|
We could stop seeding it if we didn't want other nodes to fetch it from us:
|
|
|
|
```
|
|
$ rad unseed rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji
|
|
✓ Seeding policy for rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji removed
|
|
```
|
|
|
|
Now, if we run `rad ls`, we see it's gone:
|
|
|
|
```
|
|
$ rad ls
|
|
Nothing to show.
|
|
$ rad ls --seeded
|
|
Nothing to show.
|
|
```
|
|
|
|
However, with the `--all` flag, we can see it still, but as local-only:
|
|
|
|
```
|
|
$ rad ls --all
|
|
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ Name RID Visibility Head Description │
|
|
├───────────────────────────────────────────────────────────────────────────────────────────────────────────┤
|
|
│ heartwood rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji local f2de534 Radicle Heartwood Protocol & Stack │
|
|
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
```
|
|
|
|
Hence, we also see that it isn't in our inventory and isn't seeded:
|
|
|
|
```
|
|
$ rad node inventory
|
|
$ rad seed
|
|
No seeding policies to show.
|
|
```
|