cob-cli 2.46.0-beta.3 → 2.46.0-beta.4
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/handleAutoComplete.js +11 -13
- package/package.json +1 -1
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
|
|
3
|
-
if(process.platform === 'win32'){
|
|
4
|
-
return;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
3
|
/* Autocomplete Component*/
|
|
8
4
|
var omelette = require('omelette');
|
|
9
5
|
const commandStructure = {
|
|
@@ -17,13 +13,15 @@ const commandStructure = {
|
|
|
17
13
|
const completion = omelette('cob-cli').tree(commandStructure)
|
|
18
14
|
completion.init()
|
|
19
15
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
if (process.platform !== 'win32') {
|
|
17
|
+
// add to system profiles
|
|
18
|
+
if (~process.argv.indexOf('--setup')) {
|
|
19
|
+
console.log("Setting up...")
|
|
20
|
+
completion.setupShellInitFile()
|
|
21
|
+
}
|
|
22
|
+
// remove from system profiles
|
|
23
|
+
if (~process.argv.indexOf('--cleanup')) {
|
|
24
|
+
console.log("Cleaning...")
|
|
25
|
+
completion.cleanupShellInitFile()
|
|
26
|
+
}
|
|
29
27
|
}
|
package/package.json
CHANGED