X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/2ecddba37509c1328980a2d59d1e96ca2cabab53..fea19c9e20ed07228420dae93399911a659e51b1:/client/src/main.rs diff --git a/client/src/main.rs b/client/src/main.rs index 622be806..29512953 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -1,4 +1,4 @@ -use clap::StructOpt; +use clap::Parser; use jsonrpc_client_transports::{RpcError, TypedSubscriptionStream}; use jsonrpc_core::{futures_util::StreamExt, Value}; use std::{path::PathBuf, time::Duration}; @@ -147,6 +147,15 @@ async fn main() -> Result<(), anyhow::Error> { .await } cli::CliCommands::SendContacts => client.send_contacts(cli.account).await, + cli::CliCommands::SendPaymentNotification { + recipient, + receipt, + note, + } => { + client + .send_payment_notification(cli.account, recipient, receipt, note) + .await + } cli::CliCommands::SendReaction { recipient, group_id, @@ -155,6 +164,7 @@ async fn main() -> Result<(), anyhow::Error> { target_author, target_timestamp, remove, + story, } => { client .send_reaction( @@ -166,6 +176,7 @@ async fn main() -> Result<(), anyhow::Error> { target_author, target_timestamp, remove, + story, ) .await } @@ -309,6 +320,7 @@ async fn main() -> Result<(), anyhow::Error> { family_name, about, about_emoji, + mobile_coin_address, avatar, remove_avatar, } => { @@ -319,6 +331,7 @@ async fn main() -> Result<(), anyhow::Error> { family_name, about, about_emoji, + mobile_coin_address, avatar, remove_avatar, )