Skip to content

Commit

Permalink
add create_pairwise_did custom fun to didcomm cli
Browse files Browse the repository at this point in the history
  • Loading branch information
vineetpant committed Dec 12, 2023
1 parent 148a2d3 commit 3c45295
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ async fn main() -> Result<()> {
.run_custom_function(EVAN_METHOD, "query_didcomm_messages", "{}", &payload)
.await?
}
("create_pairwise_did", Some(sub_m)) => {
let payload = get_argument_value(&sub_m, "payload", None);
get_vade_evan(&sub_m)?
.run_custom_function(EVAN_METHOD, "create_pairwise_did", "{}", &payload)
.await?
}
_ => {
bail!("invalid subcommand");
}
Expand Down Expand Up @@ -608,6 +614,11 @@ fn add_subcommand_didcomm<'a>(app: App<'a, 'a>) -> Result<App<'a, 'a>> {
.about(r###"Query stored DIDComm messages by prefix (message_{thid}_*) or message id (message_{thid}_{msgid})."###)
.arg(get_clap_argument("payload")?),
)
.subcommand(
SubCommand::with_name("create_pairwise_did")
.about(r###"Create communication did doc for pairwise did."###)
.arg(get_clap_argument("payload")?),
)
);

Ok(app)
Expand Down

0 comments on commit 3c45295

Please sign in to comment.