shin-engine 1.0.6 → 1.0.7
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/bin/ee.js +8 -0
- package/package.json +1 -1
package/bin/ee.js
CHANGED
|
@@ -7,6 +7,8 @@ const https = require("https");
|
|
|
7
7
|
const http = require("http");
|
|
8
8
|
const os = require("os");
|
|
9
9
|
|
|
10
|
+
const PKG = require(join(__dirname, "..", "package.json"));
|
|
11
|
+
const VERSION = PKG.version;
|
|
10
12
|
const EE_HOME = join(os.homedir(), ".ee");
|
|
11
13
|
const BRAIN_DIR = join(EE_HOME, "engineering-brain");
|
|
12
14
|
const JAR = join(EE_HOME, "ee.jar");
|
|
@@ -134,6 +136,11 @@ async function ensureSetup() {
|
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
async function main() {
|
|
139
|
+
if (cmd === "--version" || cmd === "-v") {
|
|
140
|
+
log("shin-engine v" + VERSION);
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
|
|
137
144
|
if (!cmd) {
|
|
138
145
|
log("Usage: shin <command>");
|
|
139
146
|
log("Run 'shin --help' for options");
|
|
@@ -200,6 +207,7 @@ async function main() {
|
|
|
200
207
|
log(" shin stop Stop the SHIN backend");
|
|
201
208
|
log(" shin status Check if SHIN is running");
|
|
202
209
|
log(" shin view Open the SHIN dashboard in browser");
|
|
210
|
+
log(" shin --version Show version");
|
|
203
211
|
return;
|
|
204
212
|
}
|
|
205
213
|
|