From 8eb408f7973f4a97be9ab62fb43ab97a8c56e062 Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Mon, 10 Jan 2022 22:24:57 -0600 Subject: [PATCH] enable export-docs app on NBCLI --- .../src/main/java/io/nosqlbench/engine/cli/NBCLI.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine-cli/src/main/java/io/nosqlbench/engine/cli/NBCLI.java b/engine-cli/src/main/java/io/nosqlbench/engine/cli/NBCLI.java index 9d01c2bbc..bfe2c0c9e 100644 --- a/engine-cli/src/main/java/io/nosqlbench/engine/cli/NBCLI.java +++ b/engine-cli/src/main/java/io/nosqlbench/engine/cli/NBCLI.java @@ -1,5 +1,6 @@ package io.nosqlbench.engine.cli; +import io.nosqlbench.docapi.BundledMarkdownExporter; import io.nosqlbench.docsys.core.NBWebServerApp; import io.nosqlbench.engine.api.activityapi.cyclelog.outputs.cyclelog.CycleLogDumperUtility; import io.nosqlbench.engine.api.activityapi.cyclelog.outputs.cyclelog.CycleLogImporterUtility; @@ -61,7 +62,7 @@ public class NBCLI { public static void main(String[] args) { try { - NBCLI cli = new NBCLI("eb"); + NBCLI cli = new NBCLI("nb"); cli.run(args); } catch (Exception e) { boolean showStackTraces = false; @@ -170,6 +171,10 @@ public class NBCLI { annotatorsConfig = "[{type:'log',level:'info'}]"; } + if (args.length > 0 && args[0].toLowerCase().equals("export-docs")) { + BundledMarkdownExporter.main(Arrays.copyOfRange(args,1,args.length)); + System.exit(0); + } if (args.length > 0 && args[0].toLowerCase().equals("virtdata")) { VirtDataMainApp.main(Arrays.copyOfRange(args, 1, args.length)); System.exit(0);