occam-open-cli 6.0.147 → 6.0.150

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.
@@ -30,8 +30,6 @@ function cloneAction(argument, quietly, yes, no) {
30
30
  FAILED_CLONE_MESSAGE;
31
31
 
32
32
  console.log(message);
33
-
34
- process.exit();
35
33
  }, context);
36
34
  }
37
35
 
@@ -29,8 +29,6 @@ function createAccountAction(argument) {
29
29
  const { message } = context;
30
30
 
31
31
  console.log(message);
32
-
33
- process.exit();
34
32
  }, context);
35
33
  }
36
34
 
@@ -55,8 +55,6 @@ Please see the readme file on GitHub:
55
55
 
56
56
  https://github.com/djalbat/occam-open-cli
57
57
  `);
58
-
59
- process.exit();
60
58
  }
61
59
 
62
60
  module.exports = helpAction;
@@ -21,8 +21,6 @@ function initialiseAction() {
21
21
  FAILED_INITIALISE_MESSAGE;
22
22
 
23
23
  console.log(message);
24
-
25
- process.exit();
26
24
  }
27
25
 
28
26
  module.exports = initialiseAction;
@@ -28,8 +28,6 @@ function openAction(argument, quietly, yes, no) {
28
28
  FAILED_OPEN_MESSAGE;
29
29
 
30
30
  console.log(message);
31
-
32
- process.exit();
33
31
  }, context);
34
32
  }
35
33
 
@@ -65,8 +65,6 @@ function publishAction(argument, tail, follow, dryRun, logLevel) {
65
65
  messages.forEach((message) => {
66
66
  console.log(message);
67
67
  });
68
-
69
- process.exit();
70
68
  }, context);
71
69
  }
72
70
 
@@ -19,8 +19,6 @@ function resetPasswordAction(argument) {
19
19
  const { message } = context;
20
20
 
21
21
  console.log(message);
22
-
23
- process.exit();
24
22
  }, context);
25
23
  }
26
24
 
@@ -22,8 +22,6 @@ function setOptionsAction() {
22
22
  FAILED_SET_OPTIONS_MESSAGE;
23
23
 
24
24
  console.log(message);
25
-
26
- process.exit();
27
25
  }, context);
28
26
  }
29
27
 
@@ -25,8 +25,6 @@ function signInAction(argument) {
25
25
  const { message } = context;
26
26
 
27
27
  console.log(message);
28
-
29
- process.exit();
30
28
  }, context);
31
29
  }
32
30
 
@@ -9,8 +9,6 @@ function signOutAction() {
9
9
  removeIdentityToken();
10
10
 
11
11
  console.log(message);
12
-
13
- process.exit();
14
12
  }
15
13
 
16
14
  module.exports = signOutAction;
@@ -29,8 +29,6 @@ function withdrawAction(argument) {
29
29
  FAILED_WITHDRAW_MESSAGE;
30
30
 
31
31
  console.log(message);
32
-
33
- process.exit();
34
32
  }, context);
35
33
  }
36
34
 
package/bin/configure.js CHANGED
@@ -4,8 +4,8 @@ const { pathUtilities } = require("necessary");
4
4
 
5
5
  const { DOUBLE_DOTS } = require("./constants"),
6
6
  { DEFAULT_HELP, DEFAULT_VERSION } = require("./defaults"),
7
- { HELP_COMMAND, VERSION_COMMAND, PUBLISH_COMMAND } = require("./commands"),
8
- { migrateConfigurationFile, checkConfigurationFileExists } = require("./configuration");
7
+ { migrateConfigurationFile, checkConfigurationFileExists } = require("./configuration"),
8
+ { HELP_COMMAND, VERSION_COMMAND, PUBLISH_COMMAND, INITIALISE_COMMAND } = require("./commands");
9
9
 
10
10
  const { bottommostNameFromPath } = pathUtilities;
11
11
 
@@ -48,7 +48,9 @@ function configure(command, argument, options, main) {
48
48
  }
49
49
  }
50
50
 
51
- migrateConfigurationFile();
51
+ if (command !== INITIALISE_COMMAND) {
52
+ migrateConfigurationFile();
53
+ }
52
54
 
53
55
  main(command, argument, options);
54
56
  }
package/bin/main.js CHANGED
@@ -43,8 +43,6 @@ function main(command, argument, options) {
43
43
  case null: {
44
44
  console.log(NO_COMMAND_GIVEN_MESSAGE);
45
45
 
46
- process.exit(1);
47
-
48
46
  break;
49
47
  }
50
48
 
package/bin/post.js CHANGED
@@ -32,7 +32,7 @@ function post(uri, json, callback) {
32
32
  if (error) {
33
33
  console.log(SERVER_FAILED_TO_RESPOND_ERROR_MESSAGE);
34
34
 
35
- process.exit();
35
+ return;
36
36
  }
37
37
 
38
38
  const { statusCode } = response;
@@ -42,11 +42,11 @@ function post(uri, json, callback) {
42
42
 
43
43
  console.log(`The server responded with '${statusMessage}'.`);
44
44
 
45
- process.exit();
45
+ return;
46
46
  }
47
47
 
48
48
  contentFromResponse(response, (content) => {
49
- let json;
49
+ let json = null;
50
50
 
51
51
  try {
52
52
  const jsonString = content; ///
@@ -55,8 +55,6 @@ function post(uri, json, callback) {
55
55
  } catch (error) {
56
56
  if (error) {
57
57
  console.log(SERVER_FAILED_TO_RESPOND_ERROR_MESSAGE);
58
-
59
- process.exit();
60
58
  }
61
59
  }
62
60
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "occam-open-cli",
3
3
  "author": "James Smith",
4
- "version": "6.0.147",
4
+ "version": "6.0.150",
5
5
  "license": "MIT, Anti-996",
6
6
  "homepage": "https://github.com/djalbat/occam-open-cli",
7
7
  "description": "Occam's command line package management tool.",