aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-cli/src/bin
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-11-04 19:16:27 -0700
committerBryan Newbold <bnewbold@robocracy.org>2022-11-04 19:16:27 -0700
commit05495ede3e4defac165a1f536dfe6d62fc181557 (patch)
tree104325f9fa5f7fe9abbae3ba0815253669d6c96b /adenosine-cli/src/bin
parentbc8493998d90799551c5e0703bbb4a6e69d2478a (diff)
downloadadenosine-05495ede3e4defac165a1f536dfe6d62fc181557.tar.gz
adenosine-05495ede3e4defac165a1f536dfe6d62fc181557.zip
cli: basic CRUD bug fixes
Diffstat (limited to 'adenosine-cli/src/bin')
-rw-r--r--adenosine-cli/src/bin/adenosine.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/adenosine-cli/src/bin/adenosine.rs b/adenosine-cli/src/bin/adenosine.rs
index 931616b..f2200ae 100644
--- a/adenosine-cli/src/bin/adenosine.rs
+++ b/adenosine-cli/src/bin/adenosine.rs
@@ -329,7 +329,8 @@ fn run(opt: Opt) -> Result<()> {
.ok_or(anyhow!("expected collection list"))?
{
println!(
- "{}",
+ "at://{}/{}",
+ uri.repository.to_string(),
c.as_str()
.ok_or(anyhow!("expected collection as a JSON string"))?
);
@@ -343,8 +344,8 @@ fn run(opt: Opt) -> Result<()> {
let records = xrpc_client
.get("com.atproto.repoListRecords", Some(params))?
.ok_or(anyhow!("expected a repoListRecords response"))?;
- for r in records.as_array().unwrap_or(&vec![]).iter() {
- println!("{}", r);
+ for r in records["records"].as_array().unwrap_or(&vec![]).iter() {
+ println!("{}", r["uri"].as_str().unwrap());
}
} else {
return Err(anyhow!("got too much of a URI to 'ls'"));