@memberjunction/cli 2.89.0 → 2.91.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/dist/commands/sync/push.d.ts +1 -0
- package/dist/commands/sync/push.js +27 -1
- package/oclif.manifest.json +28 -20
- package/package.json +5 -5
|
@@ -8,6 +8,7 @@ export default class Push extends Command {
|
|
|
8
8
|
ci: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
9
|
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
10
|
'no-validate': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
'parallel-batch-size': import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
12
|
};
|
|
12
13
|
run(): Promise<void>;
|
|
13
14
|
}
|
|
@@ -23,6 +23,12 @@ class Push extends core_1.Command {
|
|
|
23
23
|
ci: core_1.Flags.boolean({ description: 'CI mode - no prompts, fail on issues' }),
|
|
24
24
|
verbose: core_1.Flags.boolean({ char: 'v', description: 'Show detailed field-level output' }),
|
|
25
25
|
'no-validate': core_1.Flags.boolean({ description: 'Skip validation before push' }),
|
|
26
|
+
'parallel-batch-size': core_1.Flags.integer({
|
|
27
|
+
description: 'Number of records to process in parallel (default: 10)',
|
|
28
|
+
default: 10,
|
|
29
|
+
min: 1,
|
|
30
|
+
max: 50
|
|
31
|
+
}),
|
|
26
32
|
};
|
|
27
33
|
async run() {
|
|
28
34
|
const { flags } = await this.parse(Push);
|
|
@@ -90,6 +96,7 @@ class Push extends core_1.Command {
|
|
|
90
96
|
dryRun: flags['dry-run'],
|
|
91
97
|
verbose: flags.verbose,
|
|
92
98
|
noValidate: flags['no-validate'],
|
|
99
|
+
parallelBatchSize: flags['parallel-batch-size'],
|
|
93
100
|
}, {
|
|
94
101
|
onProgress: (message) => {
|
|
95
102
|
spinner.start(message);
|
|
@@ -101,7 +108,26 @@ class Push extends core_1.Command {
|
|
|
101
108
|
this.error(message);
|
|
102
109
|
},
|
|
103
110
|
onWarn: (message) => {
|
|
104
|
-
this
|
|
111
|
+
// Check if this is a user-friendly warning that doesn't need a stack trace
|
|
112
|
+
const userFriendlyPatterns = [
|
|
113
|
+
'Record not found:',
|
|
114
|
+
'To auto-create missing records',
|
|
115
|
+
'Circular dependencies detected',
|
|
116
|
+
'Skipping',
|
|
117
|
+
'File backups rolled back',
|
|
118
|
+
'Failed to rollback file backups',
|
|
119
|
+
'SQL logging requested but provider does not support it',
|
|
120
|
+
'Failed to close SQL logging session'
|
|
121
|
+
];
|
|
122
|
+
const isUserFriendly = userFriendlyPatterns.some(pattern => message.includes(pattern));
|
|
123
|
+
if (isUserFriendly) {
|
|
124
|
+
// Log as a styled warning without stack trace
|
|
125
|
+
this.log(chalk_1.default.yellow(`⚠️ ${message}`));
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
// Use standard warn for unexpected warnings that need debugging info
|
|
129
|
+
this.warn(message);
|
|
130
|
+
}
|
|
105
131
|
},
|
|
106
132
|
onLog: (message) => {
|
|
107
133
|
this.log(message);
|
package/oclif.manifest.json
CHANGED
|
@@ -94,24 +94,25 @@
|
|
|
94
94
|
"index.js"
|
|
95
95
|
]
|
|
96
96
|
},
|
|
97
|
-
"
|
|
97
|
+
"clean": {
|
|
98
98
|
"aliases": [],
|
|
99
99
|
"args": {},
|
|
100
|
-
"description": "
|
|
100
|
+
"description": "Resets the MemberJunction database to a pre-installation state",
|
|
101
101
|
"examples": [
|
|
102
102
|
"<%= config.bin %> <%= command.id %>\n"
|
|
103
103
|
],
|
|
104
104
|
"flags": {
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
105
|
+
"verbose": {
|
|
106
|
+
"char": "v",
|
|
107
|
+
"description": "Enable additional logging",
|
|
108
|
+
"name": "verbose",
|
|
108
109
|
"allowNo": false,
|
|
109
110
|
"type": "boolean"
|
|
110
111
|
}
|
|
111
112
|
},
|
|
112
113
|
"hasDynamicHelp": false,
|
|
113
114
|
"hiddenAliases": [],
|
|
114
|
-
"id": "
|
|
115
|
+
"id": "clean",
|
|
115
116
|
"pluginAlias": "@memberjunction/cli",
|
|
116
117
|
"pluginName": "@memberjunction/cli",
|
|
117
118
|
"pluginType": "core",
|
|
@@ -121,29 +122,28 @@
|
|
|
121
122
|
"relativePath": [
|
|
122
123
|
"dist",
|
|
123
124
|
"commands",
|
|
124
|
-
"
|
|
125
|
+
"clean",
|
|
125
126
|
"index.js"
|
|
126
127
|
]
|
|
127
128
|
},
|
|
128
|
-
"
|
|
129
|
+
"codegen": {
|
|
129
130
|
"aliases": [],
|
|
130
131
|
"args": {},
|
|
131
|
-
"description": "
|
|
132
|
+
"description": "Run CodeGen to generate code and update metadata for MemberJunction",
|
|
132
133
|
"examples": [
|
|
133
134
|
"<%= config.bin %> <%= command.id %>\n"
|
|
134
135
|
],
|
|
135
136
|
"flags": {
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"name": "verbose",
|
|
137
|
+
"skipdb": {
|
|
138
|
+
"description": "Skip database migration",
|
|
139
|
+
"name": "skipdb",
|
|
140
140
|
"allowNo": false,
|
|
141
141
|
"type": "boolean"
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
144
|
"hasDynamicHelp": false,
|
|
145
145
|
"hiddenAliases": [],
|
|
146
|
-
"id": "
|
|
146
|
+
"id": "codegen",
|
|
147
147
|
"pluginAlias": "@memberjunction/cli",
|
|
148
148
|
"pluginName": "@memberjunction/cli",
|
|
149
149
|
"pluginType": "core",
|
|
@@ -153,14 +153,14 @@
|
|
|
153
153
|
"relativePath": [
|
|
154
154
|
"dist",
|
|
155
155
|
"commands",
|
|
156
|
-
"
|
|
156
|
+
"codegen",
|
|
157
157
|
"index.js"
|
|
158
158
|
]
|
|
159
159
|
},
|
|
160
|
-
"
|
|
160
|
+
"install": {
|
|
161
161
|
"aliases": [],
|
|
162
162
|
"args": {},
|
|
163
|
-
"description": "
|
|
163
|
+
"description": "Install MemberJunction",
|
|
164
164
|
"examples": [
|
|
165
165
|
"<%= config.bin %> <%= command.id %>\n"
|
|
166
166
|
],
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
},
|
|
176
176
|
"hasDynamicHelp": false,
|
|
177
177
|
"hiddenAliases": [],
|
|
178
|
-
"id": "
|
|
178
|
+
"id": "install",
|
|
179
179
|
"pluginAlias": "@memberjunction/cli",
|
|
180
180
|
"pluginName": "@memberjunction/cli",
|
|
181
181
|
"pluginType": "core",
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"relativePath": [
|
|
186
186
|
"dist",
|
|
187
187
|
"commands",
|
|
188
|
-
"
|
|
188
|
+
"install",
|
|
189
189
|
"index.js"
|
|
190
190
|
]
|
|
191
191
|
},
|
|
@@ -492,6 +492,14 @@
|
|
|
492
492
|
"name": "no-validate",
|
|
493
493
|
"allowNo": false,
|
|
494
494
|
"type": "boolean"
|
|
495
|
+
},
|
|
496
|
+
"parallel-batch-size": {
|
|
497
|
+
"description": "Number of records to process in parallel (default: 10)",
|
|
498
|
+
"name": "parallel-batch-size",
|
|
499
|
+
"default": 10,
|
|
500
|
+
"hasDynamicHelp": false,
|
|
501
|
+
"multiple": false,
|
|
502
|
+
"type": "option"
|
|
495
503
|
}
|
|
496
504
|
},
|
|
497
505
|
"hasDynamicHelp": false,
|
|
@@ -1053,5 +1061,5 @@
|
|
|
1053
1061
|
]
|
|
1054
1062
|
}
|
|
1055
1063
|
},
|
|
1056
|
-
"version": "2.
|
|
1064
|
+
"version": "2.91.0"
|
|
1057
1065
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.91.0",
|
|
4
4
|
"description": "MemberJunction command line tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oclif"
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@inquirer/prompts": "^5.0.1",
|
|
54
|
-
"@memberjunction/ai-cli": "2.
|
|
55
|
-
"@memberjunction/codegen-lib": "2.
|
|
56
|
-
"@memberjunction/metadata-sync": "2.
|
|
57
|
-
"@memberjunction/sqlserver-dataprovider": "2.
|
|
54
|
+
"@memberjunction/ai-cli": "2.91.0",
|
|
55
|
+
"@memberjunction/codegen-lib": "2.91.0",
|
|
56
|
+
"@memberjunction/metadata-sync": "2.91.0",
|
|
57
|
+
"@memberjunction/sqlserver-dataprovider": "2.91.0",
|
|
58
58
|
"@oclif/core": "^3",
|
|
59
59
|
"@oclif/plugin-help": "^6",
|
|
60
60
|
"@oclif/plugin-version": "^2.0.17",
|