mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 11:00:38 +00:00
23 lines
679 B
Java
23 lines
679 B
Java
package org.asamk.signal.commands;
|
|
|
|
import net.sourceforge.argparse4j.inf.Namespace;
|
|
|
|
import org.asamk.signal.OutputWriter;
|
|
import org.asamk.signal.commands.exceptions.CommandException;
|
|
import org.asamk.signal.manager.Manager;
|
|
|
|
import java.util.List;
|
|
|
|
public interface MultiLocalCommand extends LocalCommand {
|
|
|
|
void handleCommand(
|
|
Namespace ns, List<Manager> m, SignalCreator c, OutputWriter outputWriter
|
|
) throws CommandException;
|
|
|
|
@Override
|
|
default void handleCommand(
|
|
final Namespace ns, final Manager m, final OutputWriter outputWriter
|
|
) throws CommandException {
|
|
handleCommand(ns, List.of(m), null, outputWriter);
|
|
}
|
|
}
|