Check if output type is supported by command

This commit is contained in:
AsamK 2021-01-16 21:12:01 +01:00
parent c588130491
commit a2debdb234
6 changed files with 37 additions and 0 deletions

View file

@ -2,7 +2,15 @@ package org.asamk.signal.commands;
import net.sourceforge.argparse4j.inf.Subparser;
import org.asamk.signal.OutputType;
import java.util.Set;
public interface Command {
void attachToSubparser(Subparser subparser);
default Set<OutputType> getSupportedOutputTypes() {
return Set.of(OutputType.PLAIN_TEXT);
}
}