mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-12-22 12:57:57 +01:00
Change ListProfiles class to interface
This commit is contained in:
parent
83a003e80f
commit
0ed5c52f4b
3 changed files with 8 additions and 8 deletions
|
@ -13,7 +13,7 @@ import java.util.Arrays;
|
|||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
|
||||
public class ListProfilesExternal extends ListProfiles {
|
||||
public class ListProfilesExternal implements ListProfiles {
|
||||
|
||||
private final List<String> commandList = new ArrayList<>();
|
||||
private final List<String> envList;
|
||||
|
|
|
@ -405,6 +405,10 @@ public abstract class SOPGPException extends RuntimeException {
|
|||
super();
|
||||
}
|
||||
|
||||
public UnsupportedProfile(String errorMessage) {
|
||||
super(errorMessage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getExitCode() {
|
||||
return EXIT_CODE;
|
||||
|
|
|
@ -6,14 +6,10 @@ package sop.operation;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
public abstract class ListProfiles {
|
||||
public interface ListProfiles {
|
||||
|
||||
public ListProfiles() {
|
||||
List<String> ofCommand(String command);
|
||||
|
||||
}
|
||||
|
||||
public abstract List<String> ofCommand(String command);
|
||||
|
||||
public abstract List<String> global();
|
||||
List<String> global();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue