@contentstack/cli-cm-branches 1.6.0 → 1.6.2
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/LICENSE +1 -1
- package/README.md +1 -1
- package/lib/branch/merge-handler.js +1 -1
- package/lib/commands/cm/branches/delete.js +1 -1
- package/lib/utils/asset-folder-create-script.js +3 -3
- package/lib/utils/entry-create-script.js +3 -3
- package/lib/utils/entry-create-update-script.js +3 -3
- package/lib/utils/entry-update-script.js +3 -3
- package/lib/utils/interactive.js +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches
|
|
|
37
37
|
$ csdx COMMAND
|
|
38
38
|
running command...
|
|
39
39
|
$ csdx (--version)
|
|
40
|
-
@contentstack/cli-cm-branches/1.6.
|
|
40
|
+
@contentstack/cli-cm-branches/1.6.2 linux-x64 node-v22.21.1
|
|
41
41
|
$ csdx --help [COMMAND]
|
|
42
42
|
USAGE
|
|
43
43
|
$ csdx COMMAND
|
|
@@ -247,7 +247,7 @@ class MergeHandler {
|
|
|
247
247
|
mergeContent[module].deleted = moduleBranchCompareData.deleted;
|
|
248
248
|
break;
|
|
249
249
|
default:
|
|
250
|
-
cli_utilities_1.cliux.error(`
|
|
250
|
+
cli_utilities_1.cliux.error(`Error: Invalid strategy '${strategy}'`);
|
|
251
251
|
process.exit(1);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
@@ -21,7 +21,7 @@ class BranchDeleteCommand extends cli_command_1.Command {
|
|
|
21
21
|
if (!branchDeleteFlags.yes) {
|
|
22
22
|
const confirmBranch = await utils_1.interactive.askBranchNameConfirmation();
|
|
23
23
|
if (confirmBranch !== branchDeleteFlags.uid) {
|
|
24
|
-
cli_utilities_1.cliux.error(`
|
|
24
|
+
cli_utilities_1.cliux.error(`Error: To delete the branch, enter a valid branch name '${branchDeleteFlags.uid}'`);
|
|
25
25
|
process.exit(1);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -146,13 +146,13 @@ function assetFolderCreateScript(contentType) {
|
|
|
146
146
|
migration.addTask(createAssetTask());
|
|
147
147
|
} else {
|
|
148
148
|
if (apiKey.length === 0) {
|
|
149
|
-
console.error('
|
|
149
|
+
console.error('Provide the API key using the --stack-api-key flag.');
|
|
150
150
|
}
|
|
151
151
|
if (!compareBranch) {
|
|
152
|
-
console.error('
|
|
152
|
+
console.error('Specify the compare branch using the --config compare-branch:<value> flag.');
|
|
153
153
|
}
|
|
154
154
|
if (branch.length === 0) {
|
|
155
|
-
console.error('
|
|
155
|
+
console.error('Specify the branch name using the --branch flag.');
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
}
|
|
@@ -602,13 +602,13 @@ function entryCreateScript(contentType) {
|
|
|
602
602
|
migration.addTask(createEntryTask());
|
|
603
603
|
} else {
|
|
604
604
|
if (apiKey.length === 0) {
|
|
605
|
-
console.error('
|
|
605
|
+
console.error('Provide the API key using the --stack-api-key flag.');
|
|
606
606
|
}
|
|
607
607
|
if (!compareBranch) {
|
|
608
|
-
console.error('
|
|
608
|
+
console.error('Specify the compare branch using the --config compare-branch:<value> flag.');
|
|
609
609
|
}
|
|
610
610
|
if (branch.length === 0) {
|
|
611
|
-
console.error('
|
|
611
|
+
console.error('Specify the branch name using the --branch flag.');
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
};
|
|
@@ -672,13 +672,13 @@ function entryCreateUpdateScript(contentType) {
|
|
|
672
672
|
migration.addTask(updateEntryTask());
|
|
673
673
|
} else {
|
|
674
674
|
if (apiKey.length === 0) {
|
|
675
|
-
console.error('
|
|
675
|
+
console.error('Provide the API key using the --stack-api-key flag.');
|
|
676
676
|
}
|
|
677
677
|
if (!compareBranch) {
|
|
678
|
-
console.error('
|
|
678
|
+
console.error('Specify the compare branch using the --config compare-branch:<value> flag.');
|
|
679
679
|
}
|
|
680
680
|
if (branch.length === 0) {
|
|
681
|
-
console.error('
|
|
681
|
+
console.error('Specify the branch name using the --branch flag.');
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
684
|
};`;
|
|
@@ -669,13 +669,13 @@ function entryUpdateScript(contentType) {
|
|
|
669
669
|
migration.addTask(updateEntryTask());
|
|
670
670
|
} else {
|
|
671
671
|
if (apiKey.length === 0) {
|
|
672
|
-
console.error('
|
|
672
|
+
console.error('Provide the API key using the --stack-api-key flag.');
|
|
673
673
|
}
|
|
674
674
|
if (!compareBranch) {
|
|
675
|
-
console.error('
|
|
675
|
+
console.error('Specify the compare branch using the --config compare-branch:<value> flag.');
|
|
676
676
|
}
|
|
677
677
|
if (branch.length === 0) {
|
|
678
|
-
console.error('
|
|
678
|
+
console.error('Specify the branch name using the --branch flag.');
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
};`;
|
package/lib/utils/interactive.js
CHANGED
|
@@ -97,7 +97,7 @@ async function selectMergeStrategy() {
|
|
|
97
97
|
})
|
|
98
98
|
.then((name) => name)
|
|
99
99
|
.catch((err) => {
|
|
100
|
-
cli_utilities_1.cliux.error('Failed to
|
|
100
|
+
cli_utilities_1.cliux.error('Failed to retrieve the merge strategy.');
|
|
101
101
|
process.exit(1);
|
|
102
102
|
});
|
|
103
103
|
return strategy;
|
|
@@ -119,7 +119,7 @@ async function selectMergeStrategySubOptions() {
|
|
|
119
119
|
})
|
|
120
120
|
.then((name) => name)
|
|
121
121
|
.catch((err) => {
|
|
122
|
-
cli_utilities_1.cliux.error('Failed to
|
|
122
|
+
cli_utilities_1.cliux.error('Failed to retrieve the merge strategy.');
|
|
123
123
|
process.exit(1);
|
|
124
124
|
});
|
|
125
125
|
return strategy;
|
|
@@ -163,7 +163,7 @@ async function selectContentMergePreference() {
|
|
|
163
163
|
})
|
|
164
164
|
.then((name) => name)
|
|
165
165
|
.catch((err) => {
|
|
166
|
-
cli_utilities_1.cliux.error('Failed to
|
|
166
|
+
cli_utilities_1.cliux.error('Failed to retrieve the preference.');
|
|
167
167
|
process.exit(1);
|
|
168
168
|
});
|
|
169
169
|
return strategy;
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-branches",
|
|
3
3
|
"description": "Contentstack CLI plugin to do branches operations",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.2",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@contentstack/cli-command": "~1.
|
|
8
|
+
"@contentstack/cli-command": "~1.7.1",
|
|
9
9
|
"@oclif/core": "^4.3.0",
|
|
10
10
|
"@oclif/plugin-help": "^6.2.28",
|
|
11
|
-
"@contentstack/cli-utilities": "~1.
|
|
11
|
+
"@contentstack/cli-utilities": "~1.16.0",
|
|
12
12
|
"chalk": "^4.1.2",
|
|
13
13
|
"just-diff": "^6.0.2",
|
|
14
14
|
"lodash": "^4.17.21"
|