X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/94d79692df24f69807bc77898292109b55ae1735..8037fb2d66e52fa65333e4b176c430118f59e89c:/client/src/cli.rs diff --git a/client/src/cli.rs b/client/src/cli.rs index 01910001..6a8dd361 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, @@ -162,6 +166,12 @@ pub enum CliCommands { #[arg(long)] sticker: Option, + + #[arg(long)] + story_timestamp: Option, + + #[arg(long)] + story_author: Option, }, SendContacts, SendPaymentNotification { @@ -193,6 +203,9 @@ pub enum CliCommands { #[arg(short = 'r', long)] remove: bool, + + #[arg(long)] + story: bool, }, SendReceipt { recipient: String,