cob-cli 2.46.0-beta.2 → 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.
@@ -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
- // add to system profiles
21
- if (~process.argv.indexOf('--setup')) {
22
- console.log("Setting up...")
23
- completion.setupShellInitFile()
24
- }
25
- // remove from system profiles
26
- if (~process.argv.indexOf('--cleanup')) {
27
- console.log("Cleaning...")
28
- completion.cleanupShellInitFile()
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cob-cli",
3
- "version": "2.46.0-beta.2",
3
+ "version": "2.46.0-beta.4",
4
4
  "description": "A command line utility to help Cult of Bits partners develop with higher speed and reusing common code and best practices.",
5
5
  "preferGlobal": true,
6
6
  "repository": {
@@ -9,8 +9,8 @@
9
9
  },
10
10
  "main": "./bin/cob-cli.js",
11
11
  "scripts": {
12
- "postinstall": "./bin/cob-cli.js --setup",
13
- "uninstall": "./bin/cob-cli.js --cleanup"
12
+ "postinstall": "node bin/cob-cli.js --setup",
13
+ "uninstall": "node bin/cob-cli.js --cleanup"
14
14
  },
15
15
  "bin": {
16
16
  "cob-cli": "bin/cob-cli.js"