aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-cli/src/identifiers.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-10-27 23:03:28 -0700
committerBryan Newbold <bnewbold@robocracy.org>2022-10-27 23:03:28 -0700
commit7ba5eec5a87c14f8cfe944131d6fb7229648d81f (patch)
treef6def4f470ddd8242f7aa37f1c485a9b588b9038 /adenosine-cli/src/identifiers.rs
parentdc24074377875b7f500b20e4f6088930f2eef4ea (diff)
downloadadenosine-7ba5eec5a87c14f8cfe944131d6fb7229648d81f.tar.gz
adenosine-7ba5eec5a87c14f8cfe944131d6fb7229648d81f.zip
cli: parse fields as body or query params from args
Diffstat (limited to 'adenosine-cli/src/identifiers.rs')
-rw-r--r--adenosine-cli/src/identifiers.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/adenosine-cli/src/identifiers.rs b/adenosine-cli/src/identifiers.rs
index 7129ba5..7f88df5 100644
--- a/adenosine-cli/src/identifiers.rs
+++ b/adenosine-cli/src/identifiers.rs
@@ -118,6 +118,10 @@ fn test_aturi() {
assert!(AtUri::from_str("at://bob.com/io.example.song").is_ok());
assert!(AtUri::from_str("at://bob.com/io.example.song/3yI5-c1z-cc2p-1a").is_ok());
assert!(AtUri::from_str("at://bob.com/io.example.song/3yI5-c1z-cc2p-1a#/title").is_ok());
+ assert!(
+ AtUri::from_str("at://did:plc:ltk4reuh7rkoy2frnueetpb5/app.bsky.follow/3jg23pbmlhc2a")
+ .is_ok()
+ );
let uri = AtUri {
repository: DidOrHost::Did("some".to_string(), "thing".to_string()),