Skip to content

Commit d6f389a

Browse files
committed
disable suggestion pre-validation completely
1 parent 6f325e6 commit d6f389a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

patches/0002-disable-static-argument-suggestion-validation.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ Subject: [PATCH] disable static argument suggestion validation
55

66

77
diff --git a/cloud-core/src/main/java/cloud/commandframework/CommandTree.java b/cloud-core/src/main/java/cloud/commandframework/CommandTree.java
8-
index f94ba8440e0ede4229263589f83e2f26d6afff08..f944ca256b6b64020f802f5eadfa76ba876850d4 100644
8+
index f94ba8440e0ede4229263589f83e2f26d6afff08..668239c78e25c999c6fbc9c32251b794e09cd80e 100644
99
--- a/cloud-core/src/main/java/cloud/commandframework/CommandTree.java
1010
+++ b/cloud-core/src/main/java/cloud/commandframework/CommandTree.java
11-
@@ -599,7 +599,7 @@ public final class CommandTree<C> {
12-
final List<String> suggestionsToAdd = argument.getValue().getSuggestionsProvider()
11+
@@ -600,7 +600,7 @@ public final class CommandTree<C> {
1312
.apply(commandContext, literalValue);
1413
for (String suggestion : suggestionsToAdd) {
15-
- if (suggestion.equals(literalValue) || !suggestion.startsWith(literalValue)) {
16-
+ if (suggestion.equals(literalValue) /* || !suggestion.startsWith(literalValue)*/) { // CloudNet - disable startWith check
17-
continue;
14+
if (suggestion.equals(literalValue) || !suggestion.startsWith(literalValue)) {
15+
- continue;
16+
+ // continue; // CloudNet - disable suggestion pre-validation
1817
}
1918
suggestions.add(suggestion);
19+
}

0 commit comments

Comments
 (0)