systemview 1.10.8 → 1.11.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli/launchApp.js CHANGED
@@ -19,6 +19,6 @@ module.exports = async function launchApp(port) {
19
19
  log("Launching...");
20
20
  await launchSystemView(port);
21
21
  logConnection();
22
- return startLineReader(api);
22
+ return startLineReader(ui);
23
23
  }
24
24
  };
@@ -1,9 +1,10 @@
1
1
  const runTests = require("./runTests");
2
2
  const cli = require("./utils/cli");
3
-
3
+ const openBrowser = require("./openBrowser");
4
4
  const readline = require("readline");
5
5
 
6
- module.exports = function startLineReader(api) {
6
+ module.exports = function startLineReader(ui) {
7
+ const api = `${ui}/systemview/api`;
7
8
  const lineReader = readline.createInterface({
8
9
  input: process.stdin,
9
10
  output: process.stdout,
@@ -21,6 +22,8 @@ module.exports = function startLineReader(api) {
21
22
  }
22
23
  } else if (command === "help") {
23
24
  cli.showHelp(0);
25
+ } else if (command === "open") {
26
+ openBrowser(ui);
24
27
  }
25
28
  lineReader.prompt();
26
29
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "systemview",
3
3
  "description": "A documentation and testing suite for SystemLynx",
4
- "version": "1.10.8",
4
+ "version": "1.11.8",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {
7
7
  "systemview": "cli/index.js"