X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/f60a10eb6e40921c32045c1e38843d6b87f3d274..8e8eed7b061f1ed47cf9e30abb5e29ee08e3a3dc:/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 6f262fdf..c79ba239 100644 --- a/src/main/java/org/asamk/signal/commands/Commands.java +++ b/src/main/java/org/asamk/signal/commands/Commands.java @@ -9,22 +9,34 @@ public class Commands { static { addCommand("addDevice", new AddDeviceCommand()); + addCommand("block", new BlockCommand()); addCommand("daemon", new DaemonCommand()); + addCommand("getUserStatus", new GetUserStatusCommand()); addCommand("link", new LinkCommand()); + addCommand("listContacts", new ListContactsCommand()); addCommand("listDevices", new ListDevicesCommand()); addCommand("listGroups", new ListGroupsCommand()); addCommand("listIdentities", new ListIdentitiesCommand()); + addCommand("joinGroup", new JoinGroupCommand()); addCommand("quitGroup", new QuitGroupCommand()); addCommand("receive", new ReceiveCommand()); addCommand("register", new RegisterCommand()); addCommand("removeDevice", new RemoveDeviceCommand()); + addCommand("remoteDelete", new RemoteDeleteCommand()); addCommand("removePin", new RemovePinCommand()); addCommand("send", new SendCommand()); + addCommand("sendContacts", new SendContactsCommand()); + addCommand("sendReaction", new SendReactionCommand()); + addCommand("sendSyncRequest", new SendSyncRequestCommand()); addCommand("setPin", new SetPinCommand()); addCommand("trust", new TrustCommand()); + addCommand("unblock", new UnblockCommand()); addCommand("unregister", new UnregisterCommand()); addCommand("updateAccount", new UpdateAccountCommand()); + addCommand("updateContact", new UpdateContactCommand()); addCommand("updateGroup", new UpdateGroupCommand()); + addCommand("updateProfile", new UpdateProfileCommand()); + addCommand("uploadStickerPack", new UploadStickerPackCommand()); addCommand("verify", new VerifyCommand()); } @@ -32,6 +44,13 @@ public class Commands { return commands; } + public static Command getCommand(String commandKey) { + if (!commands.containsKey(commandKey)) { + return null; + } + return commands.get(commandKey); + } + private static void addCommand(String name, Command command) { commands.put(name, command); }