@contentstack/cli-cm-clone 2.0.0-beta.11 → 2.0.0-beta.13
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
CHANGED
|
@@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-cm-clone
|
|
|
16
16
|
$ csdx COMMAND
|
|
17
17
|
running command...
|
|
18
18
|
$ csdx (--version)
|
|
19
|
-
@contentstack/cli-cm-clone/2.0.0-beta.
|
|
19
|
+
@contentstack/cli-cm-clone/2.0.0-beta.13 linux-x64 node-v22.22.1
|
|
20
20
|
$ csdx --help [COMMAND]
|
|
21
21
|
USAGE
|
|
22
22
|
$ csdx COMMAND
|
|
@@ -224,7 +224,6 @@ class StackCloneCommand extends cli_command_1.Command {
|
|
|
224
224
|
interrupt.forEach((signal) => process.on(signal, () => cleanUp(true)));
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
exports.default = StackCloneCommand;
|
|
228
227
|
StackCloneCommand.description = `Clone data (structure/content or both) of a stack into another stack
|
|
229
228
|
Use this plugin to automate the process of cloning a stack in few steps.
|
|
230
229
|
`;
|
|
@@ -314,3 +313,4 @@ StackCloneCommand.flags = {
|
|
|
314
313
|
}),
|
|
315
314
|
};
|
|
316
315
|
StackCloneCommand.usage = 'cm:stacks:clone [--source-branch <value>] [--target-branch <value>] [--source-management-token-alias <value>] [--destination-management-token-alias <value>] [-n <value>] [--type a|b] [--source-stack-api-key <value>] [--destination-stack-api-key <value>] [--import-webhook-status disable|current]';
|
|
316
|
+
exports.default = StackCloneCommand;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Clone = exports.
|
|
3
|
+
exports.Clone = exports.BaseCommand = void 0;
|
|
4
|
+
exports.HandleOrgCommand = HandleOrgCommand;
|
|
5
|
+
exports.HandleStackCommand = HandleStackCommand;
|
|
6
|
+
exports.HandleBranchCommand = HandleBranchCommand;
|
|
7
|
+
exports.HandleDestinationStackCommand = HandleDestinationStackCommand;
|
|
8
|
+
exports.HandleExportCommand = HandleExportCommand;
|
|
9
|
+
exports.SetBranchCommand = SetBranchCommand;
|
|
10
|
+
exports.CreateNewStackCommand = CreateNewStackCommand;
|
|
11
|
+
exports.CloneTypeSelectionCommand = CloneTypeSelectionCommand;
|
|
4
12
|
/**
|
|
5
13
|
* Base command class implementing the command pattern
|
|
6
14
|
*/
|
|
@@ -26,35 +34,27 @@ exports.BaseCommand = BaseCommand;
|
|
|
26
34
|
function HandleOrgCommand(params, parentContext) {
|
|
27
35
|
return new BaseCommand(parentContext.handleOrgSelection.bind(parentContext), undefined, params);
|
|
28
36
|
}
|
|
29
|
-
exports.HandleOrgCommand = HandleOrgCommand;
|
|
30
37
|
function HandleStackCommand(params, parentContext) {
|
|
31
38
|
return new BaseCommand(parentContext.handleStackSelection.bind(parentContext), parentContext.execute.bind(parentContext), params);
|
|
32
39
|
}
|
|
33
|
-
exports.HandleStackCommand = HandleStackCommand;
|
|
34
40
|
function HandleBranchCommand(params, parentContext, backStepHandler) {
|
|
35
41
|
return new BaseCommand(parentContext.handleBranchSelection.bind(parentContext), backStepHandler, params);
|
|
36
42
|
}
|
|
37
|
-
exports.HandleBranchCommand = HandleBranchCommand;
|
|
38
43
|
function HandleDestinationStackCommand(params, parentContext) {
|
|
39
44
|
return new BaseCommand(parentContext.handleStackSelection.bind(parentContext), parentContext.executeDestination.bind(parentContext), params);
|
|
40
45
|
}
|
|
41
|
-
exports.HandleDestinationStackCommand = HandleDestinationStackCommand;
|
|
42
46
|
function HandleExportCommand(params, parentContext) {
|
|
43
47
|
return new BaseCommand(parentContext.cmdExport.bind(parentContext), undefined, params);
|
|
44
48
|
}
|
|
45
|
-
exports.HandleExportCommand = HandleExportCommand;
|
|
46
49
|
function SetBranchCommand(params, parentContext) {
|
|
47
50
|
return new BaseCommand(parentContext.setBranch.bind(parentContext), undefined, params);
|
|
48
51
|
}
|
|
49
|
-
exports.SetBranchCommand = SetBranchCommand;
|
|
50
52
|
function CreateNewStackCommand(params, parentContext) {
|
|
51
53
|
return new BaseCommand(parentContext.createNewStack.bind(parentContext), parentContext.executeDestination.bind(parentContext), params);
|
|
52
54
|
}
|
|
53
|
-
exports.CreateNewStackCommand = CreateNewStackCommand;
|
|
54
55
|
function CloneTypeSelectionCommand(params, parentContext) {
|
|
55
56
|
return new BaseCommand(parentContext.cloneTypeSelection.bind(parentContext), undefined, params);
|
|
56
57
|
}
|
|
57
|
-
exports.CloneTypeSelectionCommand = CloneTypeSelectionCommand;
|
|
58
58
|
/**
|
|
59
59
|
* Clone command executor class
|
|
60
60
|
*/
|
|
@@ -140,8 +140,7 @@ class CloneHandler {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
displayBackOptionMessage() {
|
|
143
|
-
|
|
144
|
-
ui.updateBottomBar(chalk_1.default.cyan('\nPress shift & left arrow together to undo the operation\n'));
|
|
143
|
+
process.stdout.write(chalk_1.default.cyan('\nPress shift & left arrow together to undo the operation\n'));
|
|
145
144
|
}
|
|
146
145
|
setBackKeyPressHandler(backKeyPressHandler) {
|
|
147
146
|
this.backKeyPressHandler = backKeyPressHandler;
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-clone",
|
|
3
3
|
"description": "Contentstack stack clone plugin",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.13",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/rohitmishra209/cli-cm-clone/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@colors/colors": "^1.6.0",
|
|
9
|
-
"@contentstack/cli-cm-export": "~2.0.0-beta.
|
|
10
|
-
"@contentstack/cli-cm-import": "~2.0.0-beta.
|
|
11
|
-
"@contentstack/cli-command": "~2.0.0-beta",
|
|
12
|
-
"@contentstack/cli-utilities": "~2.0.0-beta.
|
|
9
|
+
"@contentstack/cli-cm-export": "~2.0.0-beta.12",
|
|
10
|
+
"@contentstack/cli-cm-import": "~2.0.0-beta.12",
|
|
11
|
+
"@contentstack/cli-command": "~2.0.0-beta.3",
|
|
12
|
+
"@contentstack/cli-utilities": "~2.0.0-beta.3",
|
|
13
13
|
"@oclif/core": "^4.3.0",
|
|
14
14
|
"@oclif/plugin-help": "^6.2.28",
|
|
15
15
|
"chalk": "^4.1.2",
|
|
16
|
-
"inquirer": "
|
|
16
|
+
"inquirer": "12.11.1",
|
|
17
17
|
"lodash": "^4.17.23",
|
|
18
18
|
"merge": "^2.1.1",
|
|
19
19
|
"ora": "^5.4.1",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@oclif/test": "^4.1.13",
|
|
25
25
|
"@types/chai": "^4.3.0",
|
|
26
26
|
"@types/mocha": "^10.0.0",
|
|
27
|
-
"@types/node": "^
|
|
27
|
+
"@types/node": "^18.11.9",
|
|
28
28
|
"@types/sinon": "^10.0.0",
|
|
29
29
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
30
30
|
"chai": "^4.5.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"oclif": "^4.17.46",
|
|
36
36
|
"sinon": "^21.0.1",
|
|
37
37
|
"ts-node": "^10.9.2",
|
|
38
|
-
"typescript": "^
|
|
38
|
+
"typescript": "^5.9.3"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=14.0.0"
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
},
|
|
62
62
|
"repository": "https://github.com/contentstack/cli",
|
|
63
63
|
"scripts": {
|
|
64
|
-
"build": "
|
|
65
|
-
"clean": "rm -rf ./lib ./node_modules tsconfig.
|
|
64
|
+
"build": "pnpm compile && oclif manifest && oclif readme",
|
|
65
|
+
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
|
|
66
66
|
"compile": "tsc -b tsconfig.json",
|
|
67
67
|
"postpack": "rm -f oclif.manifest.json",
|
|
68
68
|
"prepack": "pnpm compile && oclif manifest && oclif readme",
|