Merge branch 'nbui' into nbui-more

This commit is contained in:
Jonathan Shook
2020-04-09 11:23:41 -05:00
34 changed files with 126 additions and 57 deletions

View File

@@ -280,14 +280,12 @@ public class NBCLI {
System.out.println(" nb " + workloadName + " " + scenario);
}
Set<String> templates = workload.getTemplates();
Map<String, String> templates = workload.getTemplates();
if (templates.size() > 0) {
System.out.println(" # defaults");
templates.stream()
.map(x -> x.replaceAll(",", "="))
.map(x -> x.replaceAll(":", "="))
.map(x -> " " + x)
.forEach(System.out::println);
for (Map.Entry<String, String> templateEntry: templates.entrySet()) {
System.out.println(" " + templateEntry.getKey() + " = " + templateEntry.getValue());
}
}
System.out.println();
}