Make listings similar to command syntax (#2081)

* Make listings similar to command syntax

* OF - alignment
This commit is contained in:
Dave Fisher 2024-11-15 09:58:15 -08:00 committed by GitHub
parent 071ddbf9c2
commit 02791ec8aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 8 deletions

View File

@ -44,8 +44,8 @@ public class NBCLIScenarios {
System.out.println(
"## To include examples, add --include=examples\n" +
"## To copy any of these to your local directory, use\n" +
"## --include=examples --copy=examplename\n"
"## To copy any of these to your local directory, use\n" +
"## --include=examples --copy=examplename\n"
);
}

View File

@ -91,21 +91,18 @@ public class WorkloadDesc implements Comparable<WorkloadDesc> {
}
if (includeScenarios) {
sb.append("# workload found in ");
sb.append("# ");
}
sb.append(getYamlPath()).append("\n");
sb.append("workload=").append(getYamlPath().substring(1)).append("\n");
if (includeScenarios) {
sb.append(" # scenarios:\n");
for (String scenario : getScenarioNames()) {
sb.append(" nb ")
.append(this.getWorkloadName())
.append(" ").append(scenario).append("\n");
sb.append(" ").append(scenario).append("\n");
}
if (templates.size() > 0) {
sb.append(" # defaults\n");
}