removed ability to query for entire system_info in one go.

This commit is contained in:
gnembon committed 2022-02-16 00:25:35 +01:00
1 parent bf00051482
commit aaea11d82d
5 files changed
+6 -16

No files matched your search

@@ -215,9 +215,9 @@ public class SystemInfo {
{
return options.getOrDefault(what, c -> null).apply(cc);
}
public static Value getAll(CarpetContext cc)
public static Value getAll()
{
return MapValue.wrap(options.entrySet().stream().collect(Collectors.toMap(e -> new StringValue(e.getKey()), e -> e.getValue().apply(cc))));
return ListValue.wrap(options.keySet().stream().map(StringValue::of).collect(Collectors.toList()));
}
}