occam-open-cli 6.0.222 → 6.0.223
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 +0 -2
- package/bin/abbreviations.js +1 -3
- package/bin/action/help.js +0 -2
- package/bin/action/publish.js +1 -2
- package/bin/defaults.js +0 -2
- package/bin/main.js +2 -3
- package/bin/operation/publish.js +1 -2
- package/bin/options.js +0 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -73,8 +73,6 @@ Options:
|
|
|
73
73
|
--tail|-t Sets the size of the tail of the log messages when publishing. The default is ten.
|
|
74
74
|
|
|
75
75
|
--follow|-f Show all of the log messages when publishing. The default is false.
|
|
76
|
-
|
|
77
|
-
--verbose|-x Verbose output. This shows the output for the dependency as well as the project verification.
|
|
78
76
|
```
|
|
79
77
|
|
|
80
78
|
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.
|
package/bin/abbreviations.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
const { NO_OPTION, YES_OPTION, HELP_OPTION, TAIL_OPTION, FOLLOW_OPTION,
|
|
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
8
|
t = TAIL_OPTION,
|
|
9
9
|
f = FOLLOW_OPTION,
|
|
10
|
-
x = VERBOSE_OPTION,
|
|
11
10
|
d = DRY_RUN_OPTION,
|
|
12
11
|
v = VERSION_OPTION,
|
|
13
12
|
q = QUIETLY_OPTION,
|
|
@@ -19,7 +18,6 @@ module.exports = {
|
|
|
19
18
|
h,
|
|
20
19
|
t,
|
|
21
20
|
f,
|
|
22
|
-
x,
|
|
23
21
|
d,
|
|
24
22
|
v,
|
|
25
23
|
q,
|
package/bin/action/help.js
CHANGED
|
@@ -49,8 +49,6 @@ Options:
|
|
|
49
49
|
|
|
50
50
|
--follow|-f Show all of the log messages when publishing. The default is false.
|
|
51
51
|
|
|
52
|
-
--verbose|-x Verbose output. This shows the output for the dependency as well as the project verification.
|
|
53
|
-
|
|
54
52
|
Further information:
|
|
55
53
|
|
|
56
54
|
Please see the readme file on GitHub:
|
package/bin/action/publish.js
CHANGED
|
@@ -12,7 +12,7 @@ const { DOUBLE_DASH } = require("../constants"),
|
|
|
12
12
|
{ executeOperations } = require("../utilities/operation"),
|
|
13
13
|
{ FAILED_PUBLISH_MESSAGE, SUCCESSFUL_PUBLISH_MESSAGE } = require("../messages");
|
|
14
14
|
|
|
15
|
-
function publishAction(releaseName, tail, follow,
|
|
15
|
+
function publishAction(releaseName, tail, follow, dryRun, logLevel) {
|
|
16
16
|
const operations = [
|
|
17
17
|
getIdentityTokenOperation,
|
|
18
18
|
releaseNamePromptOperation,
|
|
@@ -27,7 +27,6 @@ function publishAction(releaseName, tail, follow, verbose, dryRun, logLevel) {
|
|
|
27
27
|
tail,
|
|
28
28
|
follow,
|
|
29
29
|
dryRun,
|
|
30
|
-
verbose,
|
|
31
30
|
success,
|
|
32
31
|
logLevel,
|
|
33
32
|
releaseName
|
package/bin/defaults.js
CHANGED
|
@@ -13,7 +13,6 @@ const DEFAULT_NO = false,
|
|
|
13
13
|
DEFAULT_TAIL = 10,
|
|
14
14
|
DEFAULT_FOLLOW = false,
|
|
15
15
|
DEFAULT_DRY_RUN = false,
|
|
16
|
-
DEFAULT_VERBOSE = false,
|
|
17
16
|
DEFAULT_VERSION = false,
|
|
18
17
|
DEFAULT_QUIETLY = false,
|
|
19
18
|
DEFAULT_LOG_LEVEL = INFO_LEVEL,
|
|
@@ -28,7 +27,6 @@ module.exports = {
|
|
|
28
27
|
DEFAULT_TAIL,
|
|
29
28
|
DEFAULT_FOLLOW,
|
|
30
29
|
DEFAULT_DRY_RUN,
|
|
31
|
-
DEFAULT_VERBOSE,
|
|
32
30
|
DEFAULT_VERSION,
|
|
33
31
|
DEFAULT_QUIETLY,
|
|
34
32
|
DEFAULT_LOG_LEVEL,
|
package/bin/main.js
CHANGED
|
@@ -15,7 +15,7 @@ const helpAction = require("./action/help"),
|
|
|
15
15
|
setShellCommandsAction = require("./action/setShellCommands");
|
|
16
16
|
|
|
17
17
|
const { NO_ARGUMENT_GIVEN_MESSAGE, COMMAND_NOT_RECOGNISED_MESSAGE } = require("./messages"),
|
|
18
|
-
{ DEFAULT_NO, DEFAULT_YES, DEFAULT_TAIL, DEFAULT_FOLLOW, DEFAULT_DRY_RUN,
|
|
18
|
+
{ DEFAULT_NO, DEFAULT_YES, DEFAULT_TAIL, DEFAULT_FOLLOW, DEFAULT_DRY_RUN, DEFAULT_QUIETLY, DEFAULT_LOG_LEVEL } = require("./defaults"),
|
|
19
19
|
{ HELP_COMMAND,
|
|
20
20
|
OPEN_COMMAND,
|
|
21
21
|
CLONE_COMMAND,
|
|
@@ -36,7 +36,6 @@ function main(command, argument, options) {
|
|
|
36
36
|
tail = DEFAULT_TAIL,
|
|
37
37
|
follow = DEFAULT_FOLLOW,
|
|
38
38
|
dryRun = DEFAULT_DRY_RUN,
|
|
39
|
-
verbose = DEFAULT_VERBOSE,
|
|
40
39
|
quietly = DEFAULT_QUIETLY,
|
|
41
40
|
logLevel = DEFAULT_LOG_LEVEL } = options;
|
|
42
41
|
|
|
@@ -89,7 +88,7 @@ function main(command, argument, options) {
|
|
|
89
88
|
} else {
|
|
90
89
|
const releaseName = argument; ///
|
|
91
90
|
|
|
92
|
-
publishAction(releaseName, tail, follow,
|
|
91
|
+
publishAction(releaseName, tail, follow, dryRun, logLevel);
|
|
93
92
|
}
|
|
94
93
|
|
|
95
94
|
break;
|
package/bin/operation/publish.js
CHANGED
|
@@ -7,13 +7,12 @@ const post = require("../post");
|
|
|
7
7
|
const { PUBLISH_API_URI } = require("../uris");
|
|
8
8
|
|
|
9
9
|
function publishOperation(proceed, abort, context) {
|
|
10
|
-
const { tail, follow,
|
|
10
|
+
const { tail, follow, dryRun, release, logLevel, releaseName, identityToken } = context,
|
|
11
11
|
uri = `${PUBLISH_API_URI}/${releaseName}`,
|
|
12
12
|
json = {
|
|
13
13
|
tail,
|
|
14
14
|
follow,
|
|
15
15
|
dryRun,
|
|
16
|
-
verbose,
|
|
17
16
|
release,
|
|
18
17
|
logLevel,
|
|
19
18
|
identityToken
|
package/bin/options.js
CHANGED
|
@@ -6,7 +6,6 @@ const NO_OPTION = "no",
|
|
|
6
6
|
TAIL_OPTION = "tail",
|
|
7
7
|
FOLLOW_OPTION = "follow",
|
|
8
8
|
VERSION_OPTION = "version",
|
|
9
|
-
VERBOSE_OPTION = "verbose",
|
|
10
9
|
QUIETLY_OPTION = "quietly",
|
|
11
10
|
DRY_RUN_OPTION = "dry-run",
|
|
12
11
|
LOG_LEVEL_OPTION = "log-level";
|
|
@@ -18,7 +17,6 @@ module.exports = {
|
|
|
18
17
|
TAIL_OPTION,
|
|
19
18
|
FOLLOW_OPTION,
|
|
20
19
|
VERSION_OPTION,
|
|
21
|
-
VERBOSE_OPTION,
|
|
22
20
|
QUIETLY_OPTION,
|
|
23
21
|
DRY_RUN_OPTION,
|
|
24
22
|
LOG_LEVEL_OPTION
|
package/package.json
CHANGED