cob-cli 2.46.0-beta.4 → 2.46.0-beta.5
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 +17 -11
- package/package.json +1 -1
|
@@ -13,15 +13,21 @@ const commandStructure = {
|
|
|
13
13
|
const completion = omelette('cob-cli').tree(commandStructure)
|
|
14
14
|
completion.init()
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
// add to system profiles
|
|
17
|
+
if (~process.argv.indexOf('--setup')) {
|
|
18
|
+
if (process.platform === 'win32') {
|
|
19
|
+
// we exit cleanly so that postinstall completes successfuly
|
|
20
|
+
process.exit(0)
|
|
21
|
+
}
|
|
22
|
+
console.log("Setting up...")
|
|
23
|
+
completion.setupShellInitFile()
|
|
24
|
+
}
|
|
25
|
+
// remove from system profiles
|
|
26
|
+
if (~process.argv.indexOf('--cleanup')) {
|
|
27
|
+
if (process.platform === 'win32') {
|
|
28
|
+
// we exit cleanly so that uninstall completes successfuly
|
|
29
|
+
process.exit(0)
|
|
30
|
+
}
|
|
31
|
+
console.log("Cleaning...")
|
|
32
|
+
completion.cleanupShellInitFile()
|
|
27
33
|
}
|
package/package.json
CHANGED