propagate-cli 1.9.47 → 1.9.49
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/operation/prompt/addDirectory.js +3 -1
- package/bin/operation/prompt/addForcedDependency.js +3 -1
- package/bin/operation/prompt/addForcedDependent.js +3 -1
- package/bin/operation/prompt/addIgnoredDependency.js +3 -1
- package/bin/operation/prompt/build.js +2 -0
- package/bin/operation/prompt/git.js +2 -0
- package/bin/operation/prompt/install.js +2 -0
- package/bin/operation/prompt/publish.js +2 -0
- package/bin/operation/prompt/removeDirectory.js +3 -1
- package/bin/operation/prompt/removeForcedDependencyRelation.js +3 -1
- package/bin/operation/prompt/removeIgnoredDependency.js +3 -1
- package/bin/operation/prompt/save.js +2 -0
- package/bin/operation/prompt/setBuildShellCommands.js +3 -1
- package/bin/operation/prompt/setGitShellCommands.js +3 -1
- package/bin/operation/prompt/setInstallShellCommands.js +3 -1
- package/bin/operation/prompt/setPublishShellCommands.js +3 -1
- package/bin/utilities/shell.js +3 -1
- package/package.json +3 -3
|
@@ -9,10 +9,12 @@ const { validateDirectoryPath } = require("../../utilities/validate"),
|
|
|
9
9
|
const { prompt } = shellUtilities;
|
|
10
10
|
|
|
11
11
|
function addDirectoryPromptOperation(proceed, abort, context) {
|
|
12
|
-
const
|
|
12
|
+
const attempts = Infinity,
|
|
13
|
+
description = DIRECTORY_PATH_DESCRIPTION,
|
|
13
14
|
errorMessage = INVALID_DIRECTORY_PATH_MESSAGE,
|
|
14
15
|
validationFunction = validateDirectoryPath, ///
|
|
15
16
|
options = {
|
|
17
|
+
attempts,
|
|
16
18
|
description,
|
|
17
19
|
errorMessage,
|
|
18
20
|
validationFunction
|
|
@@ -9,10 +9,12 @@ const { validateForcedDependencyName } = require("../../utilities/validate"),
|
|
|
9
9
|
const { prompt } = shellUtilities;
|
|
10
10
|
|
|
11
11
|
function addForcedDependencyPromptOperation(proceed, abort, context) {
|
|
12
|
-
const
|
|
12
|
+
const attempts = Infinity,
|
|
13
|
+
description = FORCED_DEPENDENCY_DESCRIPTION,
|
|
13
14
|
errorMessage = INVALID_FORCED_DEPENDENCY_NAME_MESSAGE,
|
|
14
15
|
validationFunction = validateForcedDependencyName, ///
|
|
15
16
|
options = {
|
|
17
|
+
attempts,
|
|
16
18
|
description,
|
|
17
19
|
errorMessage,
|
|
18
20
|
validationFunction
|
|
@@ -9,10 +9,12 @@ const { validateForcedDependentName } = require("../../utilities/validate"),
|
|
|
9
9
|
const { prompt } = shellUtilities;
|
|
10
10
|
|
|
11
11
|
function addForcedDependentPromptOperation(proceed, abort, context) {
|
|
12
|
-
const
|
|
12
|
+
const attempts = Infinity,
|
|
13
|
+
description = FORCED_DEPENDENT_DESCRIPTION,
|
|
13
14
|
errorMessage = INVALID_FORCED_DEPENDENT_NAME_MESSAGE,
|
|
14
15
|
validationFunction = validateForcedDependentName, ///
|
|
15
16
|
options = {
|
|
17
|
+
attempts,
|
|
16
18
|
description,
|
|
17
19
|
errorMessage,
|
|
18
20
|
validationFunction
|
|
@@ -9,10 +9,12 @@ const { validateIgnoredDependencyName } = require("../../utilities/validate"),
|
|
|
9
9
|
const { prompt } = shellUtilities;
|
|
10
10
|
|
|
11
11
|
function addIgnoredDependencyPromptOperation(proceed, abort, context) {
|
|
12
|
-
const
|
|
12
|
+
const attempts = Infinity,
|
|
13
|
+
description = IGNORED_DEPENDENCY_DESCRIPTION,
|
|
13
14
|
errorMessage = INVALID_IGNORED_DEPENDENCY_NAME_MESSAGE,
|
|
14
15
|
validationFunction = validateIgnoredDependencyName, ///
|
|
15
16
|
options = {
|
|
17
|
+
attempts,
|
|
16
18
|
description,
|
|
17
19
|
errorMessage,
|
|
18
20
|
validationFunction
|
|
@@ -16,11 +16,13 @@ function buildPromptOperation(proceed, abort, context) {
|
|
|
16
16
|
answer = yes ?
|
|
17
17
|
YES :
|
|
18
18
|
null,
|
|
19
|
+
attempts = Infinity,
|
|
19
20
|
description = BUILD_YES_NO_DESCRIPTION,
|
|
20
21
|
errorMessage = INVALID_ANSWER_MESSAGE,
|
|
21
22
|
validationFunction = validateAnswer, ///
|
|
22
23
|
options = {
|
|
23
24
|
answer,
|
|
25
|
+
attempts,
|
|
24
26
|
description,
|
|
25
27
|
errorMessage,
|
|
26
28
|
validationFunction
|
|
@@ -16,11 +16,13 @@ function gitPromptOperation(proceed, abort, context) {
|
|
|
16
16
|
answer = yes ?
|
|
17
17
|
YES :
|
|
18
18
|
null,
|
|
19
|
+
attempts = Infinity,
|
|
19
20
|
description = ADD_COMMIT_PUSH_GIT_DESCRIPTION,
|
|
20
21
|
errorMessage = INVALID_ANSWER_MESSAGE,
|
|
21
22
|
validationFunction = validateAnswer, ///
|
|
22
23
|
options = {
|
|
23
24
|
answer,
|
|
25
|
+
attempts,
|
|
24
26
|
description,
|
|
25
27
|
errorMessage,
|
|
26
28
|
validationFunction
|
|
@@ -16,11 +16,13 @@ function installPromptOperation(proceed, abort, context) {
|
|
|
16
16
|
answer = yes ?
|
|
17
17
|
YES :
|
|
18
18
|
null,
|
|
19
|
+
attempts = Infinity,
|
|
19
20
|
description = INSTALL_YES_NO_DESCRIPTION,
|
|
20
21
|
errorMessage = INVALID_ANSWER_MESSAGE,
|
|
21
22
|
validationFunction = validateAnswer, ///
|
|
22
23
|
options = {
|
|
23
24
|
answer,
|
|
25
|
+
attempts,
|
|
24
26
|
description,
|
|
25
27
|
errorMessage,
|
|
26
28
|
validationFunction
|
|
@@ -25,11 +25,13 @@ function publishPromptOperation(proceed, abort, context) {
|
|
|
25
25
|
const answer = yes ?
|
|
26
26
|
YES :
|
|
27
27
|
null,
|
|
28
|
+
attempts = Infinity,
|
|
28
29
|
description = PUBLISH_YES_NO_DESCRIPTION,
|
|
29
30
|
errorMessage = INVALID_ANSWER_MESSAGE,
|
|
30
31
|
validationFunction = validateAnswer, ///
|
|
31
32
|
options = {
|
|
32
33
|
answer,
|
|
34
|
+
attempts,
|
|
33
35
|
description,
|
|
34
36
|
errorMessage,
|
|
35
37
|
validationFunction
|
|
@@ -9,7 +9,8 @@ const { validateDirectoryNumber } = require("../../utilities/validate"),
|
|
|
9
9
|
const { prompt } = shellUtilities;
|
|
10
10
|
|
|
11
11
|
function removeDirectoryPromptOperation(proceed, abort, context) {
|
|
12
|
-
const
|
|
12
|
+
const attempts = Infinity,
|
|
13
|
+
description = SPECIFY_DIRECTORY_TO_REMOVE_DESCRIPTION,
|
|
13
14
|
errorMessage = INVALID_DIRECTORY_NUMBER_MESSAGE,
|
|
14
15
|
{ directoryNumbers } = context,
|
|
15
16
|
validationFunction = (directoryNumber) => {
|
|
@@ -18,6 +19,7 @@ function removeDirectoryPromptOperation(proceed, abort, context) {
|
|
|
18
19
|
return validateDirectoryNumber(directoryNumber, directoryNumbers);
|
|
19
20
|
}, ///
|
|
20
21
|
options = {
|
|
22
|
+
attempts,
|
|
21
23
|
description,
|
|
22
24
|
errorMessage,
|
|
23
25
|
validationFunction
|
|
@@ -9,7 +9,8 @@ const { validateForcedDependencyRelationNumber } = require("../../utilities/vali
|
|
|
9
9
|
const { prompt } = shellUtilities;
|
|
10
10
|
|
|
11
11
|
function removeForcedDependencyRelationPromptOperation(proceed, abort, context) {
|
|
12
|
-
const
|
|
12
|
+
const attempts = Infinity,
|
|
13
|
+
description = SPECIFY_FORCED_DEPENDENCY_RELATION_TO_REMOVE_DESCRIPTION,
|
|
13
14
|
errorMessage = INVALID_FORCED_DEPENDENCY_RELATION_NUMBER_MESSAGE,
|
|
14
15
|
{ forcedDependencyRelationNumbers } = context,
|
|
15
16
|
validationFunction = (forcedDependencyRelationNumber) => {
|
|
@@ -18,6 +19,7 @@ function removeForcedDependencyRelationPromptOperation(proceed, abort, context)
|
|
|
18
19
|
return validateForcedDependencyRelationNumber(forcedDependencyRelationNumber, forcedDependencyRelationNumbers);
|
|
19
20
|
}, ///
|
|
20
21
|
options = {
|
|
22
|
+
attempts,
|
|
21
23
|
description,
|
|
22
24
|
errorMessage,
|
|
23
25
|
validationFunction
|
|
@@ -9,7 +9,8 @@ const { validateIgnoredDependencyNumber } = require("../../utilities/validate"),
|
|
|
9
9
|
const { prompt } = shellUtilities;
|
|
10
10
|
|
|
11
11
|
function removeIgnoredDependencyPromptOperation(proceed, abort, context) {
|
|
12
|
-
const
|
|
12
|
+
const attempts = Infinity,
|
|
13
|
+
description = SPECIFY_IGNORED_DEPENDENCY_TO_REMOVE_DESCRIPTION,
|
|
13
14
|
errorMessage = INVALID_IGNORED_DEPENDENCY_NUMBER_MESSAGE,
|
|
14
15
|
{ ignoredDependencyNumbers } = context,
|
|
15
16
|
validationFunction = (ignoredDependencyNumber) => {
|
|
@@ -18,6 +19,7 @@ function removeIgnoredDependencyPromptOperation(proceed, abort, context) {
|
|
|
18
19
|
return validateIgnoredDependencyNumber(ignoredDependencyNumber, ignoredDependencyNumbers);
|
|
19
20
|
}, ///
|
|
20
21
|
options = {
|
|
22
|
+
attempts,
|
|
21
23
|
description,
|
|
22
24
|
errorMessage,
|
|
23
25
|
validationFunction
|
|
@@ -21,11 +21,13 @@ function savePromptOperation(proceed, abort, context) {
|
|
|
21
21
|
const answer = yes ?
|
|
22
22
|
YES :
|
|
23
23
|
null,
|
|
24
|
+
attempts = Infinity,
|
|
24
25
|
description = SAVE_UPDATES_YES_NO_DESCRIPTION,
|
|
25
26
|
errorMessage = INVALID_ANSWER_MESSAGE,
|
|
26
27
|
validationFunction = validateAnswer, ///
|
|
27
28
|
options = {
|
|
28
29
|
answer,
|
|
30
|
+
attempts,
|
|
29
31
|
description,
|
|
30
32
|
errorMessage,
|
|
31
33
|
validationFunction
|
|
@@ -13,10 +13,12 @@ function setBuildShellCommandsPromptOperation(proceed, abort, context) {
|
|
|
13
13
|
const { shellCommands } = context,
|
|
14
14
|
{ build } = shellCommands,
|
|
15
15
|
buildShellCommands = build, ///
|
|
16
|
+
attempts = Infinity,
|
|
17
|
+
description = BUILD_SHELL_COMMANDS_DESCRIPTION,
|
|
16
18
|
initialAnswer = buildShellCommands, //
|
|
17
19
|
validationFunction = validateShellCommands, ///
|
|
18
|
-
description = BUILD_SHELL_COMMANDS_DESCRIPTION,
|
|
19
20
|
options = {
|
|
21
|
+
attempts,
|
|
20
22
|
description,
|
|
21
23
|
initialAnswer,
|
|
22
24
|
validationFunction
|
|
@@ -13,10 +13,12 @@ function setGitShellCommandsPromptOperation(proceed, abort, context) {
|
|
|
13
13
|
const { shellCommands } = context,
|
|
14
14
|
{ git } = shellCommands,
|
|
15
15
|
gitShellCommands = git, ///
|
|
16
|
+
attempts = Infinity,
|
|
17
|
+
description = GIT_SHELL_COMMANDS_DESCRIPTION,
|
|
16
18
|
initialAnswer = gitShellCommands, ///
|
|
17
19
|
validationFunction = validateShellCommands, ///
|
|
18
|
-
description = GIT_SHELL_COMMANDS_DESCRIPTION,
|
|
19
20
|
options = {
|
|
21
|
+
attempts,
|
|
20
22
|
description,
|
|
21
23
|
initialAnswer,
|
|
22
24
|
validationFunction
|
|
@@ -13,10 +13,12 @@ function setInstallShellCommandsPromptOperation(proceed, abort, context) {
|
|
|
13
13
|
const { shellCommands } = context,
|
|
14
14
|
{ install } = shellCommands,
|
|
15
15
|
installShellCommands = install, ///
|
|
16
|
+
attempts = Infinity,
|
|
17
|
+
description = INSTALL_SHELL_COMMANDS_DESCRIPTION,
|
|
16
18
|
initialAnswer = installShellCommands, //
|
|
17
19
|
validationFunction = validateShellCommands, ///
|
|
18
|
-
description = INSTALL_SHELL_COMMANDS_DESCRIPTION,
|
|
19
20
|
options = {
|
|
21
|
+
attempts,
|
|
20
22
|
description,
|
|
21
23
|
initialAnswer,
|
|
22
24
|
validationFunction
|
|
@@ -13,10 +13,12 @@ function setPublishShellCommandsPromptOperation(proceed, abort, context) {
|
|
|
13
13
|
const { shellCommands } = context,
|
|
14
14
|
{ publish } = shellCommands,
|
|
15
15
|
publishShellCommands = publish, ///
|
|
16
|
+
attempts = Infinity,
|
|
17
|
+
description = PUBLISH_SHELL_COMMANDS_DESCRIPTION,
|
|
16
18
|
initialAnswer = publishShellCommands, ///
|
|
17
19
|
validationFunction = validateShellCommands, ///
|
|
18
|
-
description = PUBLISH_SHELL_COMMANDS_DESCRIPTION,
|
|
19
20
|
options = {
|
|
21
|
+
attempts,
|
|
20
22
|
description,
|
|
21
23
|
initialAnswer,
|
|
22
24
|
validationFunction
|
package/bin/utilities/shell.js
CHANGED
|
@@ -21,10 +21,12 @@ function execute(shellCommands, quietly, callback) {
|
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const
|
|
24
|
+
const attempts = Infinity,
|
|
25
|
+
description = FAILED_SCRIPT_DESCRIPTION,
|
|
25
26
|
errorMessage = INVALID_ANSWER_MESSAGE,
|
|
26
27
|
validationFunction = validateAnswer, ///
|
|
27
28
|
options = {
|
|
29
|
+
attempts,
|
|
28
30
|
description,
|
|
29
31
|
errorMessage,
|
|
30
32
|
validationFunction
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "propagate-cli",
|
|
3
3
|
"author": "James Smith",
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.49",
|
|
5
5
|
"license": "MIT, Anti-996",
|
|
6
6
|
"homepage": "https://github.com/djalbat/propagate-cli",
|
|
7
7
|
"description": "Propagate updated packages throughout a project.",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"argumentative": "^2.0.28",
|
|
17
|
-
"necessary": "^13.6.
|
|
18
|
-
"occam-directed-graphs": "^3.0.
|
|
17
|
+
"necessary": "^13.6.6",
|
|
18
|
+
"occam-directed-graphs": "^3.0.71",
|
|
19
19
|
"sudo": "^1.0.3"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {}
|