]> nmode's Git Repositories - signal-cli/blobdiff - client/src/cli.rs
Add --quote-attachment paramter to send command
[signal-cli] / client / src / cli.rs
index ca80929017b31558083407009926afea4b928ec9..0b513268eabd9a8e4d0739485b0442092df33d97 100644 (file)
@@ -10,13 +10,17 @@ pub struct Cli {
     pub account: Option<String>,
 
     /// TCP host and port of signal-cli daemon
-    #[arg(long)]
+    #[arg(long, conflicts_with = "json_rpc_http")]
     pub json_rpc_tcp: Option<Option<SocketAddr>>,
 
     /// UNIX socket address and port of signal-cli daemon
-    #[arg(long)]
+    #[arg(long, conflicts_with = "json_rpc_tcp")]
     pub json_rpc_socket: Option<Option<OsString>>,
 
+    /// HTTP URL of signal-cli daemon
+    #[arg(long, conflicts_with = "json_rpc_socket")]
+    pub json_rpc_http: Option<Option<String>>,
+
     #[arg(value_enum, long, default_value_t = OutputTypes::Json)]
     pub output: OutputTypes,
 
@@ -160,6 +164,9 @@ pub enum CliCommands {
         #[arg(long)]
         quote_mention: Vec<String>,
 
+        #[arg(long)]
+        quote_attachment: Vec<String>,
+
         #[arg(long)]
         sticker: Option<String>,