occam-open-cli 6.0.215 → 6.0.217
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/bin/messages.js
CHANGED
|
@@ -20,6 +20,7 @@ const NO_ARGUMENT_GIVEN_MESSAGE = "No argument has been given.",
|
|
|
20
20
|
FAILED_WITHDRAW_MESSAGE = "Failed to withdraw the package.",
|
|
21
21
|
FAILED_INITIALISE_MESSAGE = "Failed to create a configuration file because one is already present.",
|
|
22
22
|
FAILED_SET_OPTIONS_MESSAGE = "Failed to set the options.",
|
|
23
|
+
FAILED_PROJECT_LOAD_MESSAGE = "Failed to load the project. Likely it is missing or perhaps it is already a package.",
|
|
23
24
|
FAILED_SET_SHELL_COMMANDS_MESSAGE = "Failed to set the shell commands.",
|
|
24
25
|
SUCCESSFUL_OPEN_MESSAGE = "The package has been opened successfully.",
|
|
25
26
|
SUCCESSFUL_CLONE_MESSAGE = "The package has been cloned successfully.",
|
|
@@ -50,6 +51,7 @@ module.exports = {
|
|
|
50
51
|
FAILED_WITHDRAW_MESSAGE,
|
|
51
52
|
FAILED_INITIALISE_MESSAGE,
|
|
52
53
|
FAILED_SET_OPTIONS_MESSAGE,
|
|
54
|
+
FAILED_PROJECT_LOAD_MESSAGE,
|
|
53
55
|
FAILED_SET_SHELL_COMMANDS_MESSAGE,
|
|
54
56
|
SUCCESSFUL_OPEN_MESSAGE,
|
|
55
57
|
SUCCESSFUL_CLONE_MESSAGE,
|
package/bin/operation/clone.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
const { fileSystemUtilities } = require("occam-file-system");
|
|
4
4
|
|
|
5
|
+
const { FAILED_PROJECT_LOAD_MESSAGE } = require("../messages");
|
|
6
|
+
|
|
5
7
|
const { loadProject } = fileSystemUtilities;
|
|
6
8
|
|
|
7
9
|
function loadProjectOperation(proceed, abort, context) {
|
|
@@ -10,6 +12,10 @@ function loadProjectOperation(proceed, abort, context) {
|
|
|
10
12
|
project = loadProject(releaseName ,projectsDirectoryPath);
|
|
11
13
|
|
|
12
14
|
if (project === null) {
|
|
15
|
+
const message = FAILED_PROJECT_LOAD_MESSAGE; ///
|
|
16
|
+
|
|
17
|
+
console.log(message);
|
|
18
|
+
|
|
13
19
|
abort();
|
|
14
20
|
|
|
15
21
|
return;
|
package/bin/operation/open.js
CHANGED
package/package.json
CHANGED