mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 08:44:50 +00:00
Drop * from pack suggestions
- Stop suggesting the internal all-packs sentinel - Say omit for every pack in validate, status and compat help
This commit is contained in:
1 parent
a1bf501c30
commit
10463d58cc
3 files changed
+4
-22
No files matched your search
@@ -6,7 +6,7 @@ import art.arcane.iris.spi.IrisPlatforms;
|
||||
import java.io.File;
|
||||
import java.util.Collection;
|
||||
|
||||
public class PackFolderHandler extends OpenSuggestionHandler {
|
||||
public final class PackFolderHandler extends OpenSuggestionHandler {
|
||||
@Override
|
||||
protected Collection<String> suggestions() {
|
||||
return PackDirectoryResolver.listVisiblePackDirectories(IrisPlatforms.get().packsFolder())
|
||||
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
package art.arcane.iris.command.specialhandlers;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public final class PackFolderOrAllHandler extends PackFolderHandler {
|
||||
private static final String ALL_PACKS = "*";
|
||||
|
||||
@Override
|
||||
protected Collection<String> suggestions() {
|
||||
List<String> options = new ArrayList<>();
|
||||
options.add(ALL_PACKS);
|
||||
options.addAll(super.suggestions());
|
||||
return options;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user