SteamWar/BauSystem2.0
Archiviert
12
0

hotfix flag autocomplete #244

Zusammengeführt
YoyoNow hat 1 Commits von tracer/hotfix-flag-autocomplete nach master 2024-04-28 15:12:12 +02:00 zusammengeführt
Nur Änderungen aus Commit 00dcb10451 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -268,7 +268,7 @@ public class TraceCommand extends SWCommand {
@Override @Override
public Collection<String> tabCompletes(CommandSender sender, PreviousArguments previousArguments, String s) { public Collection<String> tabCompletes(CommandSender sender, PreviousArguments previousArguments, String s) {
return ViewFlag.flags.stream() return ViewFlag.flags.stream()
.flatMap(viewFlag -> Stream.concat(Stream.of("--" + viewFlag.name), .flatMap(viewFlag -> Stream.concat(Stream.of("-" + viewFlag.name),
Arrays.stream(viewFlag.aliases).map(name -> "-" + name))) Arrays.stream(viewFlag.aliases).map(name -> "-" + name)))
.collect(Collectors.toList()); .collect(Collectors.toList());
} }