Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
cli: Do not print scope in block table
Adrian Duke committed 2 months ago
commit dd13eed1d03729cb3224df6400cd7b8c3cf653d1
parent b5e8776
2 files changed +4 -2
modified crates/radicle-cli/examples/rad-block.md
@@ -38,7 +38,7 @@ $ rad seed
╭───────────────────────────────────────────────────────────╮
│ Repository                          Name   Policy   Scope │
├───────────────────────────────────────────────────────────┤
-
│ rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji          block    all   │
+
│ rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji          block          │
╰───────────────────────────────────────────────────────────╯
```

modified crates/radicle-cli/src/commands/seed.rs
@@ -84,7 +84,9 @@ pub fn seeding(profile: &Profile) -> anyhow::Result<()> {
                    .repository(rid)
                    .and_then(|repo| repo.project().map(|proj| proj.name().to_string()))
                    .unwrap_or_default();
-
                let scope = policy.scope().unwrap_or_default().to_string();
+
                let scope = policy
+
                    .scope()
+
                    .map_or(String::new(), |scope| scope.to_string());
                let policy = term::format::policy(&Policy::from(policy));

                t.push([