X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/ccce539843c8f61d4b34b5c608eb422760b0c48e..ed79e0b37717a51ff83114a07202c25fcc274206:/src/main/java/org/asamk/signal/commands/Commands.java diff --git a/src/main/java/org/asamk/signal/commands/Commands.java b/src/main/java/org/asamk/signal/commands/Commands.java index 29b28da0..51620a7f 100644 --- a/src/main/java/org/asamk/signal/commands/Commands.java +++ b/src/main/java/org/asamk/signal/commands/Commands.java @@ -13,8 +13,14 @@ public class Commands { addCommand(new AddDeviceCommand()); addCommand(new BlockCommand()); addCommand(new DaemonCommand()); + addCommand(new DeleteLocalAccountDataCommand()); + addCommand(new FinishChangeNumberCommand()); addCommand(new FinishLinkCommand()); + addCommand(new GetAttachmentCommand()); + addCommand(new GetAvatarCommand()); + addCommand(new GetStickerCommand()); addCommand(new GetUserStatusCommand()); + addCommand(new AddStickerPackCommand()); addCommand(new JoinGroupCommand()); addCommand(new JsonRpcDispatcherCommand()); addCommand(new LinkCommand()); @@ -33,12 +39,15 @@ public class Commands { addCommand(new RemoteDeleteCommand()); addCommand(new SendCommand()); addCommand(new SendContactsCommand()); + addCommand(new SendMessageRequestResponseCommand()); + addCommand(new SendPaymentNotificationCommand()); addCommand(new SendReactionCommand()); addCommand(new SendReceiptCommand()); addCommand(new SendSyncRequestCommand()); addCommand(new SendTypingCommand()); addCommand(new SetPinCommand()); addCommand(new SubmitRateLimitChallengeCommand()); + addCommand(new StartChangeNumberCommand()); addCommand(new StartLinkCommand()); addCommand(new TrustCommand()); addCommand(new UnblockCommand()); @@ -66,8 +75,8 @@ public class Commands { private static void addCommand(Command command) { commands.put(command.getName(), command); - if (command instanceof CliCommand) { - commandSubparserAttacher.put(command.getName(), ((CliCommand) command)::attachToSubparser); + if (command instanceof CliCommand cliCommand) { + commandSubparserAttacher.put(command.getName(), cliCommand::attachToSubparser); } } }