X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/15c9d047033f2dd64a677aca8139a3ecd34e9472..4ce194afe28e8918d066b267dec8ea9cf6b4b2a0:/client/src/cli.rs diff --git a/client/src/cli.rs b/client/src/cli.rs index dea3a7df..e0abb717 100644 --- a/client/src/cli.rs +++ b/client/src/cli.rs @@ -68,8 +68,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)] @@ -263,6 +279,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 +326,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 +415,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 +457,10 @@ pub enum GroupPermission { EveryMember, OnlyAdmins, } + +#[derive(ValueEnum, Clone, Debug)] +#[value(rename_all = "kebab-case")] +pub enum MessageRequestResponseType { + Accept, + Delete, +}