@contentstack/cli-cm-seed 1.2.0 → 1.3.0
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/lib/commands/cm/stacks/seed.d.ts +7 -7
- package/lib/commands/cm/stacks/seed.js +7 -7
- package/oclif.manifest.json +1 -1
- package/package.json +15 -13
package/LICENSE
CHANGED
|
@@ -4,13 +4,13 @@ export default class SeedCommand extends Command {
|
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static usage: string;
|
|
6
6
|
static flags: {
|
|
7
|
-
repo: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
8
|
-
org: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
9
|
-
'stack-api-key': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
10
|
-
'stack-name': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
11
|
-
'fetch-limit': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
12
|
-
yes: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
13
|
-
stack: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
repo: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
8
|
+
org: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
9
|
+
'stack-api-key': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
10
|
+
'stack-name': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
11
|
+
'fetch-limit': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
12
|
+
yes: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
13
|
+
stack: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
14
14
|
};
|
|
15
15
|
static aliases: string[];
|
|
16
16
|
run(): Promise<{
|
|
@@ -46,14 +46,14 @@ SeedCommand.examples = [
|
|
|
46
46
|
];
|
|
47
47
|
SeedCommand.usage = 'cm:stacks:seed [--repo <value>] [--org <value>] [-k <value>] [-n <value>] [-y <value>] [-s <value>]';
|
|
48
48
|
SeedCommand.flags = {
|
|
49
|
-
repo:
|
|
49
|
+
repo: cli_utilities_1.flags.string({
|
|
50
50
|
char: 'r',
|
|
51
51
|
description: 'GitHub account or GitHub account/repository',
|
|
52
52
|
multiple: false,
|
|
53
53
|
required: false,
|
|
54
54
|
parse: (0, cli_utilities_1.printFlagDeprecation)(['-r'], ['--repo']),
|
|
55
55
|
}),
|
|
56
|
-
org:
|
|
56
|
+
org: cli_utilities_1.flags.string({
|
|
57
57
|
char: 'o',
|
|
58
58
|
description: 'Provide Organization UID to create a new stack',
|
|
59
59
|
multiple: false,
|
|
@@ -61,34 +61,34 @@ SeedCommand.flags = {
|
|
|
61
61
|
exclusive: ['stack'],
|
|
62
62
|
parse: (0, cli_utilities_1.printFlagDeprecation)(['-o'], ['--org']),
|
|
63
63
|
}),
|
|
64
|
-
'stack-api-key':
|
|
64
|
+
'stack-api-key': cli_utilities_1.flags.string({
|
|
65
65
|
char: 'k',
|
|
66
66
|
description: 'Provide stack api key to seed content to',
|
|
67
67
|
multiple: false,
|
|
68
68
|
required: false,
|
|
69
69
|
exclusive: ['org'],
|
|
70
70
|
}),
|
|
71
|
-
'stack-name':
|
|
71
|
+
'stack-name': cli_utilities_1.flags.string({
|
|
72
72
|
char: 'n',
|
|
73
73
|
description: 'Name of a new stack that needs to be created.',
|
|
74
74
|
multiple: false,
|
|
75
75
|
required: false,
|
|
76
76
|
exclusive: ['stack'],
|
|
77
77
|
}),
|
|
78
|
-
'fetch-limit':
|
|
78
|
+
'fetch-limit': cli_utilities_1.flags.string({
|
|
79
79
|
char: 'l',
|
|
80
80
|
description: 'Limit for number of Organizations or stacks to be fetched',
|
|
81
81
|
multiple: false,
|
|
82
82
|
required: false,
|
|
83
83
|
hidden: true,
|
|
84
84
|
}),
|
|
85
|
-
yes:
|
|
85
|
+
yes: cli_utilities_1.flags.string({
|
|
86
86
|
char: 'y',
|
|
87
87
|
required: false,
|
|
88
88
|
description: '[Optional] Skip stack confirmation',
|
|
89
89
|
}),
|
|
90
90
|
//To be deprecated
|
|
91
|
-
stack:
|
|
91
|
+
stack: cli_utilities_1.flags.string({
|
|
92
92
|
char: 's',
|
|
93
93
|
description: 'Provide stack UID to seed content to',
|
|
94
94
|
multiple: false,
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-seed",
|
|
3
3
|
"description": "create a Stack from existing content types, entries, assets, etc.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@contentstack/cli-cm-import": "^1.
|
|
9
|
-
"@contentstack/cli-command": "^1.
|
|
10
|
-
"@contentstack/cli-utilities": "^1.
|
|
8
|
+
"@contentstack/cli-cm-import": "^1.4.0",
|
|
9
|
+
"@contentstack/cli-command": "^1.2.0",
|
|
10
|
+
"@contentstack/cli-utilities": "^1.2.0",
|
|
11
11
|
"@contentstack/management": "^1.6.1",
|
|
12
|
-
"
|
|
12
|
+
"@oclif/core": "^2.3.0",
|
|
13
|
+
"axios": "1.3.4",
|
|
13
14
|
"inquirer": "8.2.4",
|
|
14
15
|
"mkdirp": "^1.0.4",
|
|
15
|
-
"tar": "^6.
|
|
16
|
+
"tar": "^6.1.13",
|
|
16
17
|
"tmp": "^0.2.1",
|
|
17
18
|
"tslib": "^2.4.1"
|
|
18
19
|
},
|
|
19
20
|
"devDependencies": {
|
|
20
|
-
"@oclif/dev-cli": "^1.26.10",
|
|
21
21
|
"@oclif/plugin-help": "^5.1.19",
|
|
22
22
|
"@types/inquirer": "^9.0.3",
|
|
23
23
|
"@types/jest": "^26.0.15",
|
|
24
24
|
"@types/mkdirp": "^1.0.1",
|
|
25
25
|
"@types/node": "^14.14.32",
|
|
26
|
-
"@types/tar": "^
|
|
26
|
+
"@types/tar": "^6.1.3",
|
|
27
27
|
"@types/tmp": "^0.2.0",
|
|
28
28
|
"eslint": "^8.18.0",
|
|
29
|
-
"eslint-config-oclif": "^
|
|
29
|
+
"eslint-config-oclif": "^4.0.0",
|
|
30
30
|
"eslint-config-oclif-typescript": "^0.1.0",
|
|
31
31
|
"globby": "^10.0.2",
|
|
32
|
-
"jest": "^
|
|
33
|
-
"
|
|
32
|
+
"jest": "^29.4.2",
|
|
33
|
+
"oclif": "^3.1.2",
|
|
34
|
+
"ts-jest": "^29.0.5",
|
|
34
35
|
"ts-node": "^8.10.2",
|
|
35
36
|
"typescript": "^4.9.3"
|
|
36
37
|
},
|
|
37
38
|
"engines": {
|
|
38
|
-
"node": ">=
|
|
39
|
+
"node": ">=14.0.0"
|
|
39
40
|
},
|
|
40
41
|
"files": [
|
|
41
42
|
"/lib",
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
"postpack": "rm -f oclif.manifest.json",
|
|
67
68
|
"posttest": "eslint . --ext .ts --config .eslintrc",
|
|
68
69
|
"prepack": "rm -rf lib && tsc -b && oclif manifest && oclif readme",
|
|
69
|
-
"version": "oclif readme && git add README.md"
|
|
70
|
+
"version": "oclif readme && git add README.md",
|
|
71
|
+
"clean": "rm -rf ./node_modules tsconfig.build.tsbuildinfo"
|
|
70
72
|
}
|
|
71
73
|
}
|