X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/15c9d047033f2dd64a677aca8139a3ecd34e9472..7c7fc76a649678e9f77f1fcaeaaf4efdf9cc3cd9:/client/src/cli.rs diff --git a/client/src/cli.rs b/client/src/cli.rs index dea3a7df..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>, @@ -68,8 +69,24 @@ pub enum CliCommands { #[arg(short = 'g', long = "group-id")] group_id: Option, }, + GetAvatar { + #[arg(long)] + contact: Option, + #[arg(long)] + profile: Option, + #[arg(short = 'g', long = "group-id")] + group_id: Option, + }, + GetSticker { + #[arg(long = "pack-id")] + pack_id: String, + #[arg(long = "sticker-id")] + sticker_id: u32, + }, GetUserStatus { recipient: Vec, + #[arg(long)] + username: Vec, }, JoinGroup { #[arg(long)] @@ -162,6 +179,9 @@ pub enum CliCommands { #[arg(short = 'a', long)] attachment: Vec, + #[arg(long)] + view_once: bool, + #[arg(long)] mention: Vec, @@ -263,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, }, @@ -302,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")] @@ -387,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)] @@ -429,3 +461,10 @@ pub enum GroupPermission { EveryMember, OnlyAdmins, } + +#[derive(ValueEnum, Clone, Debug)] +#[value(rename_all = "kebab-case")] +pub enum MessageRequestResponseType { + Accept, + Delete, +}