X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/e3752e733adaad6f04c7d525e1b465a4b46474c7..1058e33f1208e1ca284d3fd4760380d68093741f:/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 90e8e114..0f26c994 100644 --- a/src/main/java/org/asamk/signal/commands/Commands.java +++ b/src/main/java/org/asamk/signal/commands/Commands.java @@ -13,31 +13,44 @@ 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 GetUserStatusCommand()); + addCommand(new AddStickerPackCommand()); addCommand(new JoinGroupCommand()); addCommand(new JsonRpcDispatcherCommand()); addCommand(new LinkCommand()); + addCommand(new ListAccountsCommand()); addCommand(new ListContactsCommand()); addCommand(new ListDevicesCommand()); addCommand(new ListGroupsCommand()); addCommand(new ListIdentitiesCommand()); + addCommand(new ListStickerPacksCommand()); addCommand(new QuitGroupCommand()); addCommand(new ReceiveCommand()); addCommand(new RegisterCommand()); + addCommand(new RemoveContactCommand()); addCommand(new RemoveDeviceCommand()); - addCommand(new RemoteDeleteCommand()); addCommand(new RemovePinCommand()); + addCommand(new RemoteDeleteCommand()); addCommand(new SendCommand()); addCommand(new SendContactsCommand()); + 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()); addCommand(new UnregisterCommand()); addCommand(new UpdateAccountCommand()); + addCommand(new UpdateConfigurationCommand()); addCommand(new UpdateContactCommand()); addCommand(new UpdateGroupCommand()); addCommand(new UpdateProfileCommand()); @@ -59,8 +72,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); } } }