X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/5ed9db4f08e52ed0c42cb42740f85d2ad346e13c..2c5d1f85503b382f08a1ac6eb2e4e49ee3951f9b:/client/src/cli.rs diff --git a/client/src/cli.rs b/client/src/cli.rs index ca809290..0b513268 100644 --- a/client/src/cli.rs +++ b/client/src/cli.rs @@ -10,13 +10,17 @@ pub struct Cli { pub account: Option, /// TCP host and port of signal-cli daemon - #[arg(long)] + #[arg(long, conflicts_with = "json_rpc_http")] pub json_rpc_tcp: Option>, /// UNIX socket address and port of signal-cli daemon - #[arg(long)] + #[arg(long, conflicts_with = "json_rpc_tcp")] pub json_rpc_socket: Option>, + /// HTTP URL of signal-cli daemon + #[arg(long, conflicts_with = "json_rpc_socket")] + pub json_rpc_http: Option>, + #[arg(value_enum, long, default_value_t = OutputTypes::Json)] pub output: OutputTypes, @@ -160,6 +164,9 @@ pub enum CliCommands { #[arg(long)] quote_mention: Vec, + #[arg(long)] + quote_attachment: Vec, + #[arg(long)] sticker: Option,