occam-open-cli 6.0.128 → 6.0.129

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.
@@ -2,15 +2,13 @@
2
2
 
3
3
  const { pathUtilities } = require("necessary");
4
4
 
5
- const actions = require("./actions");
6
-
7
5
  const { DOUBLE_DOTS } = require("./constants"),
8
6
  { PUBLISH_COMMAND } = require("./commands"),
9
7
  { checkConfigurationFileExists, migrateConfigurationFile } = require("./configuration");
10
8
 
11
9
  const { bottommostNameFromPath } = pathUtilities;
12
10
 
13
- function main(command, argument, options) {
11
+ function configure(command, argument, options, callback) {
14
12
  let configurationFileExists = checkConfigurationFileExists();
15
13
 
16
14
  if (command === PUBLISH_COMMAND) { ///
@@ -35,7 +33,7 @@ function main(command, argument, options) {
35
33
  migrateConfigurationFile();
36
34
  }
37
35
 
38
- actions(command, argument, options);
36
+ callback(command, argument, options);
39
37
  }
40
38
 
41
- module.exports = main;
39
+ module.exports = configure;
package/open.js CHANGED
@@ -3,7 +3,8 @@
3
3
  const { parseArgv } = require("argumentative"),
4
4
  { arrayUtilities } = require("necessary");
5
5
 
6
- const main = require("./bin/main"),
6
+ const actions = require("./bin/actions"),
7
+ configure = require("./bin/configure"),
7
8
  abbreviations = require("./bin/abbreviations");
8
9
 
9
10
  const { argv } = process,
@@ -15,4 +16,4 @@ const { commands, options } = parseArgv(argv, abbreviations),
15
16
  command = firstCommand || null, ///
16
17
  argument = secondCommand || null; ///
17
18
 
18
- main(command, argument, options);
19
+ configure(command, argument, options, actions);
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.128",
4
+ "version": "6.0.129",
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.",