@_xtribe/cli 2.1.8 ā 2.1.9
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/package.json +1 -1
- package/tribe.js +14 -17
package/package.json
CHANGED
package/tribe.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* TRIBE CLI wrapper for npm users
|
|
5
|
-
* This tries to run the installed tribe binary, or
|
|
5
|
+
* This tries to run the installed tribe binary, or gives installation instructions
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
const { spawn
|
|
8
|
+
const { spawn } = require('child_process');
|
|
9
9
|
const fs = require('fs');
|
|
10
10
|
const path = require('path');
|
|
11
11
|
const os = require('os');
|
|
@@ -26,19 +26,16 @@ if (fs.existsSync(tribeBinPath)) {
|
|
|
26
26
|
process.exit(code || 0);
|
|
27
27
|
});
|
|
28
28
|
} else {
|
|
29
|
-
// Tribe not installed,
|
|
30
|
-
console.log('
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
process.exit(code || 0);
|
|
43
|
-
});
|
|
29
|
+
// Tribe not installed, show installation instructions
|
|
30
|
+
console.log('ā TRIBE CLI not found');
|
|
31
|
+
console.log('');
|
|
32
|
+
console.log('š¦ To install TRIBE CLI, run:');
|
|
33
|
+
console.log(' npx @_xtribe/cli');
|
|
34
|
+
console.log('');
|
|
35
|
+
console.log('š” Then you can use:');
|
|
36
|
+
console.log(' tribe --version');
|
|
37
|
+
console.log(' tribe status');
|
|
38
|
+
console.log(' tribe login');
|
|
39
|
+
console.log('');
|
|
40
|
+
process.exit(1);
|
|
44
41
|
}
|