]> nmode's Git Repositories - signal-cli/blobdiff - client/src/main.rs
Update to clap 4
[signal-cli] / client / src / main.rs
index 622be8061b1315a0311c5fd1c75a534155b7adbd..50a0f4cb32650924db80d57371886866501bf3b4 100644 (file)
@@ -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,
@@ -309,6 +318,7 @@ async fn main() -> Result<(), anyhow::Error> {
             family_name,
             about,
             about_emoji,
+            mobile_coin_address,
             avatar,
             remove_avatar,
         } => {
@@ -319,6 +329,7 @@ async fn main() -> Result<(), anyhow::Error> {
                     family_name,
                     about,
                     about_emoji,
+                    mobile_coin_address,
                     avatar,
                     remove_avatar,
                 )