mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
parent
20681b8d89
commit
5938d54784
6 changed files with 315 additions and 207 deletions
|
@ -42,6 +42,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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue