mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 05:50:31 +08:00
18 lines
433 B
Rust
18 lines
433 B
Rust
use anyhow::Context as _;
|
|
|
|
use radicle::{prelude::Id, storage::ReadStorage, Profile};
|
|
|
|
use crate::terminal as term;
|
|
|
|
pub fn run<S>(profile: &Profile, storage: &S, id: Id) -> anyhow::Result<()>
|
|
where
|
|
S: ReadStorage,
|
|
{
|
|
let project = storage
|
|
.get(&profile.public_key, id)?
|
|
.context("No project with the given RID exists")?;
|
|
|
|
term::info!("{}", serde_json::to_string_pretty(&project.delegates)?);
|
|
Ok(())
|
|
}
|