occam-open-cli 5.2.25 → 5.2.28

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/README.md CHANGED
@@ -70,6 +70,10 @@ Options:
70
70
  --log-level|-l Set the log level when publishing
71
71
 
72
72
  --yes|-y Initially answer yes to prompts
73
+
74
+ --tail|-t Sets the size of the tail of the log messages when publishing. The default is ten.
75
+
76
+ --follow|-f Show all of the log messages when publishing. The default is false.
73
77
  ```
74
78
 
75
79
  This is slightly different from `npm` in that `open` is usually executed from the parent directory of a project rather than from within the project sub-directory itself.
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
 
3
- const { NO_OPTION, YES_OPTION, HELP_OPTION, DRY_RUN_OPTION, VERSION_OPTION, QUIETLY_OPTION, LOG_LEVEL_OPTION } = require("./options");
3
+ const { NO_OPTION, YES_OPTION, HELP_OPTION, TAIL_OPTION, FOLLOW_OPTION, DRY_RUN_OPTION, VERSION_OPTION, QUIETLY_OPTION, LOG_LEVEL_OPTION } = require("./options");
4
4
 
5
5
  const n = NO_OPTION,
6
6
  y = YES_OPTION,
7
7
  h = HELP_OPTION,
8
+ t = TAIL_OPTION,
9
+ f = FOLLOW_OPTION,
8
10
  d = DRY_RUN_OPTION,
9
11
  v = VERSION_OPTION,
10
12
  q = QUIETLY_OPTION,
@@ -14,6 +16,8 @@ module.exports = {
14
16
  n,
15
17
  y,
16
18
  h,
19
+ t,
20
+ f,
17
21
  d,
18
22
  v,
19
23
  q,
@@ -45,6 +45,10 @@ Options:
45
45
 
46
46
  --yes|-y Initially answer yes to prompts
47
47
 
48
+ --tail|-t Sets the size of the tail of the log messages when publishing. The default is ten.
49
+
50
+ --follow|-f Show all of the log messages when publishing. The default is false.
51
+
48
52
  Further information:
49
53
 
50
54
  Please see the readme file on GitHub:
@@ -13,7 +13,7 @@ const { DOUBLE_DASH } = require("../constants"),
13
13
  { executeOperations } = require("../utilities/operation"),
14
14
  { FAILED_PUBLISH_MESSAGE, SUCCESSFUL_PUBLISH_MESSAGE } = require("../messages");
15
15
 
16
- function publishAction(argument, dryRun, logLevel) {
16
+ function publishAction(argument, tail, follow, dryRun, logLevel) {
17
17
  const releaseName = trimTrailingSlash(argument), ///
18
18
  operations = [
19
19
  getIdentityTokenOperation,
@@ -26,6 +26,8 @@ function publishAction(argument, dryRun, logLevel) {
26
26
  ],
27
27
  success = false,
28
28
  context = {
29
+ tail,
30
+ follow,
29
31
  dryRun,
30
32
  success,
31
33
  logLevel,
package/bin/actions.js CHANGED
@@ -14,7 +14,7 @@ const helpAction = require("./action/help"),
14
14
  resetPasswordAction = require("./action/resetPassword"),
15
15
  setShellCommandsAction = require("./action/setShellCommands");
16
16
 
17
- const { DEFAULT_NO, DEFAULT_YES, DEFAULT_HELP, DEFAULT_DRY_RUN, DEFAULT_VERSION, DEFAULT_QUIETLY, DEFAULT_LOG_LEVEL } = require("./defaults"),
17
+ const { DEFAULT_NO, DEFAULT_YES, DEFAULT_HELP, DEFAULT_TAIL, DEFAULT_FOLLOW, DEFAULT_DRY_RUN, DEFAULT_VERSION, DEFAULT_QUIETLY, DEFAULT_LOG_LEVEL } = require("./defaults"),
18
18
  { HELP_COMMAND,
19
19
  OPEN_COMMAND,
20
20
  CLONE_COMMAND,
@@ -34,6 +34,8 @@ function actions(command, argument, options) {
34
34
  { no = DEFAULT_NO,
35
35
  yes = DEFAULT_YES,
36
36
  help = DEFAULT_HELP,
37
+ tail = DEFAULT_TAIL,
38
+ follow = DEFAULT_FOLLOW,
37
39
  dryRun = DEFAULT_DRY_RUN,
38
40
  version = DEFAULT_VERSION,
39
41
  quietly = DEFAULT_QUIETLY,
@@ -54,7 +56,7 @@ function actions(command, argument, options) {
54
56
  case OPEN_COMMAND: openAction(argument, quietly, yes, no); break;
55
57
  case CLONE_COMMAND: cloneAction(argument, quietly, yes, no); break;
56
58
  case VERSION_COMMAND: versionAction(); break;
57
- case PUBLISH_COMMAND: publishAction(argument, dryRun, logLevel); break;
59
+ case PUBLISH_COMMAND: publishAction(argument, tail, follow, dryRun, logLevel); break;
58
60
  case SIGN_IN_COMMAND: signInAction(argument); break;
59
61
  case SIGN_OUT_COMMAND: signOutAction(); break;
60
62
  case DEPRECATE_COMMAND: deprecateAction(argument); break;
package/bin/defaults.js CHANGED
@@ -10,6 +10,8 @@ const DEFAULT_NO = false,
10
10
  DEFAULT_YES = false,
11
11
  DEFAULT_HELP = false,
12
12
  DEFAULT_HOST = "https://openmathematics.org",
13
+ DEFAULT_TAIL = 10,
14
+ DEFAULT_FOLLOW = false,
13
15
  DEFAULT_DRY_RUN = false,
14
16
  DEFAULT_VERSION = false,
15
17
  DEFAULT_QUIETLY = false,
@@ -22,6 +24,8 @@ module.exports = {
22
24
  DEFAULT_YES,
23
25
  DEFAULT_HELP,
24
26
  DEFAULT_HOST,
27
+ DEFAULT_TAIL,
28
+ DEFAULT_FOLLOW,
25
29
  DEFAULT_DRY_RUN,
26
30
  DEFAULT_VERSION,
27
31
  DEFAULT_QUIETLY,
@@ -7,9 +7,11 @@ const post = require("../post");
7
7
  const { PUBLISH_API_URI } = require("../uris");
8
8
 
9
9
  function publishOperation(proceed, abort, context) {
10
- const { dryRun, release, logLevel, releaseName, identityToken } = context,
10
+ const { tail, follow, dryRun, release, logLevel, releaseName, identityToken } = context,
11
11
  uri = `${PUBLISH_API_URI}/${releaseName}`,
12
12
  json = {
13
+ tail,
14
+ follow,
13
15
  dryRun,
14
16
  release,
15
17
  logLevel,
package/bin/options.js CHANGED
@@ -3,6 +3,8 @@
3
3
  const NO_OPTION = "no",
4
4
  YES_OPTION = "yes",
5
5
  HELP_OPTION = "help",
6
+ TAIL_OPTION = "tail",
7
+ FOLLOW_OPTION = "follow",
6
8
  VERSION_OPTION = "version",
7
9
  QUIETLY_OPTION = "quietly",
8
10
  DRY_RUN_OPTION = "dry-run",
@@ -12,6 +14,8 @@ module.exports = {
12
14
  NO_OPTION,
13
15
  YES_OPTION,
14
16
  HELP_OPTION,
17
+ TAIL_OPTION,
18
+ FOLLOW_OPTION,
15
19
  VERSION_OPTION,
16
20
  QUIETLY_OPTION,
17
21
  DRY_RUN_OPTION,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "occam-open-cli",
3
3
  "author": "James Smith",
4
- "version": "5.2.25",
4
+ "version": "5.2.28",
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.",
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "argumentative": "^2.0.21",
14
14
  "necessary": "^11.2.2",
15
- "occam-file-system": "^5.0.160"
15
+ "occam-file-system": "^5.0.162"
16
16
  },
17
17
  "scripts": {},
18
18
  "bin": {