occam-open-cli 6.0.214 → 6.0.215
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 +23 -21
- package/bin/abbreviations.js +3 -1
- package/bin/action/help.js +22 -20
- package/bin/action/publish.js +2 -1
- package/bin/defaults.js +2 -0
- package/bin/main.js +3 -2
- package/bin/operation/publish.js +2 -1
- package/bin/options.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,47 +32,49 @@ These are the commands and options:
|
|
|
32
32
|
|
|
33
33
|
Commands:
|
|
34
34
|
|
|
35
|
-
help
|
|
35
|
+
help Show this help
|
|
36
36
|
|
|
37
|
-
version
|
|
37
|
+
version Show the version
|
|
38
38
|
|
|
39
|
-
[install] <package_name>
|
|
39
|
+
[install] <package_name> Install a package
|
|
40
40
|
|
|
41
|
-
initialise
|
|
41
|
+
initialise Create a configuration file
|
|
42
42
|
|
|
43
|
-
set-options
|
|
43
|
+
set-options Set options
|
|
44
44
|
|
|
45
|
-
clone <package_name>
|
|
45
|
+
clone <package_name> Clone a package with Git
|
|
46
46
|
|
|
47
|
-
publish <package_name>
|
|
47
|
+
publish <package_name> Publish a package
|
|
48
48
|
|
|
49
|
-
withdraw <package_name>
|
|
49
|
+
withdraw <package_name> Withdraw a package
|
|
50
50
|
|
|
51
|
-
create-account [<email_address>]
|
|
51
|
+
create-account [<email_address>] Create an account
|
|
52
52
|
|
|
53
|
-
sign-in [<email_address_or_username>]
|
|
53
|
+
sign-in [<email_address_or_username>] Sign in
|
|
54
54
|
|
|
55
|
-
sign-out
|
|
55
|
+
sign-out Sign out
|
|
56
|
+
|
|
57
|
+
reset-password [<email_address>] Reset password
|
|
56
58
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
set-shell-commands Set shell commands
|
|
59
|
+
set-shell-commands Set shell commands
|
|
60
60
|
|
|
61
61
|
Options:
|
|
62
62
|
|
|
63
|
-
--help|-h
|
|
63
|
+
--help|-h Show this help
|
|
64
64
|
|
|
65
|
-
--version|-v
|
|
65
|
+
--version|-v Show the version
|
|
66
66
|
|
|
67
|
-
--quietly|-q
|
|
67
|
+
--quietly|-q Run with almost no console logging
|
|
68
68
|
|
|
69
|
-
--log-level|-l
|
|
69
|
+
--log-level|-l Set the log level when publishing
|
|
70
70
|
|
|
71
|
-
--yes|-y
|
|
71
|
+
--yes|-y Initially answer yes to prompts
|
|
72
|
+
|
|
73
|
+
--tail|-t Sets the size of the tail of the log messages when publishing. The default is ten.
|
|
72
74
|
|
|
73
|
-
--
|
|
75
|
+
--follow|-f Show all of the log messages when publishing. The default is false.
|
|
74
76
|
|
|
75
|
-
--
|
|
77
|
+
--verbose|-x Verbose output. This shows the output for the dependency as well as the project verification.
|
|
76
78
|
```
|
|
77
79
|
|
|
78
80
|
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,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
const { NO_OPTION, YES_OPTION, HELP_OPTION, TAIL_OPTION, FOLLOW_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, VERBOSE_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,
|
|
10
11
|
d = DRY_RUN_OPTION,
|
|
11
12
|
v = VERSION_OPTION,
|
|
12
13
|
q = QUIETLY_OPTION,
|
|
@@ -18,6 +19,7 @@ module.exports = {
|
|
|
18
19
|
h,
|
|
19
20
|
t,
|
|
20
21
|
f,
|
|
22
|
+
x,
|
|
21
23
|
d,
|
|
22
24
|
v,
|
|
23
25
|
q,
|
package/bin/action/help.js
CHANGED
|
@@ -7,47 +7,49 @@ function helpAction() {
|
|
|
7
7
|
|
|
8
8
|
Commands:
|
|
9
9
|
|
|
10
|
-
help
|
|
10
|
+
help Show this help
|
|
11
11
|
|
|
12
|
-
version
|
|
12
|
+
version Show the version
|
|
13
13
|
|
|
14
|
-
[install] <package_name>
|
|
14
|
+
[install] <package_name> Install a package
|
|
15
15
|
|
|
16
|
-
initialise
|
|
16
|
+
initialise Create a configuration file
|
|
17
17
|
|
|
18
|
-
set-options
|
|
18
|
+
set-options Set options
|
|
19
19
|
|
|
20
|
-
clone <package_name>
|
|
20
|
+
clone <package_name> Clone a package with Git
|
|
21
21
|
|
|
22
|
-
publish <package_name>
|
|
22
|
+
publish <package_name> Publish a package
|
|
23
23
|
|
|
24
|
-
withdraw <package_name>
|
|
24
|
+
withdraw <package_name> Withdraw a package
|
|
25
25
|
|
|
26
|
-
create-account [<email_address>]
|
|
26
|
+
create-account [<email_address>] Create an account
|
|
27
27
|
|
|
28
|
-
sign-in [<email_address_or_username>]
|
|
28
|
+
sign-in [<email_address_or_username>] Sign in
|
|
29
29
|
|
|
30
|
-
sign-out
|
|
30
|
+
sign-out Sign out
|
|
31
31
|
|
|
32
|
-
reset-password [<email_address>]
|
|
32
|
+
reset-password [<email_address>] Reset password
|
|
33
33
|
|
|
34
|
-
set-shell-commands
|
|
34
|
+
set-shell-commands Set shell commands
|
|
35
35
|
|
|
36
36
|
Options:
|
|
37
37
|
|
|
38
|
-
--help|-h
|
|
38
|
+
--help|-h Show this help
|
|
39
39
|
|
|
40
|
-
--version|-v
|
|
40
|
+
--version|-v Show the version
|
|
41
41
|
|
|
42
|
-
--quietly|-q
|
|
42
|
+
--quietly|-q Run with almost no console logging
|
|
43
43
|
|
|
44
|
-
--log-level|-l
|
|
44
|
+
--log-level|-l Set the log level when publishing
|
|
45
45
|
|
|
46
|
-
--yes|-y
|
|
46
|
+
--yes|-y Initially answer yes to prompts
|
|
47
47
|
|
|
48
|
-
--tail|-t
|
|
48
|
+
--tail|-t Sets the size of the tail of the log messages when publishing. The default is ten.
|
|
49
49
|
|
|
50
|
-
--follow|-f
|
|
50
|
+
--follow|-f Show all of the log messages when publishing. The default is false.
|
|
51
|
+
|
|
52
|
+
--verbose|-x Verbose output. This shows the output for the dependency as well as the project verification.
|
|
51
53
|
|
|
52
54
|
Further information:
|
|
53
55
|
|
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, dryRun, logLevel) {
|
|
15
|
+
function publishAction(releaseName, tail, follow, verbose, dryRun, logLevel) {
|
|
16
16
|
const operations = [
|
|
17
17
|
getIdentityTokenOperation,
|
|
18
18
|
releaseNamePromptOperation,
|
|
@@ -27,6 +27,7 @@ function publishAction(releaseName, tail, follow, dryRun, logLevel) {
|
|
|
27
27
|
tail,
|
|
28
28
|
follow,
|
|
29
29
|
dryRun,
|
|
30
|
+
verbose,
|
|
30
31
|
success,
|
|
31
32
|
logLevel,
|
|
32
33
|
releaseName
|
package/bin/defaults.js
CHANGED
|
@@ -13,6 +13,7 @@ const DEFAULT_NO = false,
|
|
|
13
13
|
DEFAULT_TAIL = 10,
|
|
14
14
|
DEFAULT_FOLLOW = false,
|
|
15
15
|
DEFAULT_DRY_RUN = false,
|
|
16
|
+
DEFAULT_VERBOSE = false,
|
|
16
17
|
DEFAULT_VERSION = false,
|
|
17
18
|
DEFAULT_QUIETLY = false,
|
|
18
19
|
DEFAULT_LOG_LEVEL = INFO_LEVEL,
|
|
@@ -27,6 +28,7 @@ module.exports = {
|
|
|
27
28
|
DEFAULT_TAIL,
|
|
28
29
|
DEFAULT_FOLLOW,
|
|
29
30
|
DEFAULT_DRY_RUN,
|
|
31
|
+
DEFAULT_VERBOSE,
|
|
30
32
|
DEFAULT_VERSION,
|
|
31
33
|
DEFAULT_QUIETLY,
|
|
32
34
|
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, DEFAULT_QUIETLY, DEFAULT_LOG_LEVEL } = require("./defaults"),
|
|
18
|
+
{ DEFAULT_NO, DEFAULT_YES, DEFAULT_TAIL, DEFAULT_FOLLOW, DEFAULT_DRY_RUN, DEFAULT_VERBOSE, DEFAULT_QUIETLY, DEFAULT_LOG_LEVEL } = require("./defaults"),
|
|
19
19
|
{ HELP_COMMAND,
|
|
20
20
|
OPEN_COMMAND,
|
|
21
21
|
CLONE_COMMAND,
|
|
@@ -36,6 +36,7 @@ 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,
|
|
39
40
|
quietly = DEFAULT_QUIETLY,
|
|
40
41
|
logLevel = DEFAULT_LOG_LEVEL } = options;
|
|
41
42
|
|
|
@@ -88,7 +89,7 @@ function main(command, argument, options) {
|
|
|
88
89
|
} else {
|
|
89
90
|
const releaseName = argument; ///
|
|
90
91
|
|
|
91
|
-
publishAction(releaseName, tail, follow, dryRun, logLevel);
|
|
92
|
+
publishAction(releaseName, tail, follow, verbose, dryRun, logLevel);
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
break;
|
package/bin/operation/publish.js
CHANGED
|
@@ -7,12 +7,13 @@ 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, dryRun, release, logLevel, releaseName, identityToken } = context,
|
|
10
|
+
const { tail, follow, verbose, 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,
|
|
16
17
|
release,
|
|
17
18
|
logLevel,
|
|
18
19
|
identityToken
|
package/bin/options.js
CHANGED
|
@@ -6,6 +6,7 @@ const NO_OPTION = "no",
|
|
|
6
6
|
TAIL_OPTION = "tail",
|
|
7
7
|
FOLLOW_OPTION = "follow",
|
|
8
8
|
VERSION_OPTION = "version",
|
|
9
|
+
VERBOSE_OPTION = "verbose",
|
|
9
10
|
QUIETLY_OPTION = "quietly",
|
|
10
11
|
DRY_RUN_OPTION = "dry-run",
|
|
11
12
|
LOG_LEVEL_OPTION = "log-level";
|
|
@@ -17,6 +18,7 @@ module.exports = {
|
|
|
17
18
|
TAIL_OPTION,
|
|
18
19
|
FOLLOW_OPTION,
|
|
19
20
|
VERSION_OPTION,
|
|
21
|
+
VERBOSE_OPTION,
|
|
20
22
|
QUIETLY_OPTION,
|
|
21
23
|
DRY_RUN_OPTION,
|
|
22
24
|
LOG_LEVEL_OPTION
|
package/package.json
CHANGED