X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/7cf3a989bf47dd81f8700dcfb6986ac81e1bf02e..7c7fc76a649678e9f77f1fcaeaaf4efdf9cc3cd9:/client/src/cli.rs diff --git a/client/src/cli.rs b/client/src/cli.rs index 33403890..7fa5d1c5 100644 --- a/client/src/cli.rs +++ b/client/src/cli.rs @@ -15,6 +15,7 @@ pub struct Cli { pub json_rpc_tcp: Option>, /// UNIX socket address and port of signal-cli daemon + #[cfg(unix)] #[arg(long, conflicts_with = "json_rpc_tcp")] pub json_rpc_socket: Option>, @@ -84,6 +85,8 @@ pub enum CliCommands { }, GetUserStatus { recipient: Vec, + #[arg(long)] + username: Vec, }, JoinGroup { #[arg(long)] @@ -176,6 +179,9 @@ pub enum CliCommands { #[arg(short = 'a', long)] attachment: Vec, + #[arg(long)] + view_once: bool, + #[arg(long)] mention: Vec, @@ -277,6 +283,14 @@ pub enum CliCommands { #[arg(short = 's', long)] stop: bool, }, + SendMessageRequestResponse { + recipient: Vec, + + #[arg(short = 'g', long = "group-id")] + group_id: Vec, + + r#type: MessageRequestResponseType, + }, SetPin { pin: String, }, @@ -316,6 +330,10 @@ pub enum CliCommands { device_name: Option, #[arg(long = "unrestricted-unidentified-sender")] unrestricted_unidentified_sender: Option, + #[arg(long = "discoverable-by-number")] + discoverable_by_number: Option, + #[arg(long = "number-sharing")] + number_sharing: Option, }, UpdateConfiguration { #[arg(long = "read-receipts")] @@ -401,7 +419,7 @@ pub enum CliCommands { #[arg(long = "about-emoji")] about_emoji: Option, - #[arg(long = "mobile-coin-address")] + #[arg(long = "mobile-coin-address", visible_alias = "mobilecoin-address")] mobile_coin_address: Option, #[arg(long)] @@ -443,3 +461,10 @@ pub enum GroupPermission { EveryMember, OnlyAdmins, } + +#[derive(ValueEnum, Clone, Debug)] +#[value(rename_all = "kebab-case")] +pub enum MessageRequestResponseType { + Accept, + Delete, +}