From 3c4529579359a50f603cb49687e400a11770590f Mon Sep 17 00:00:00 2001 From: vineet <10172895+vineetpant@users.noreply.github.com> Date: Tue, 12 Dec 2023 14:10:35 +0100 Subject: [PATCH] add create_pairwise_did custom fun to didcomm cli --- src/main.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main.rs b/src/main.rs index dea9cc0..5d70450 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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"); } @@ -608,6 +614,11 @@ fn add_subcommand_didcomm<'a>(app: App<'a, 'a>) -> Result> { .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)