contensis-cli 1.0.12-beta.7 → 1.0.12-beta.9
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/import.js +2 -2
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/remove.js +13 -0
- package/dist/commands/remove.js.map +2 -2
- package/dist/localisation/en-GB.js +1 -1
- package/dist/localisation/en-GB.js.map +2 -2
- package/dist/services/ContensisCliService.js +48 -3
- package/dist/services/ContensisCliService.js.map +2 -2
- package/dist/shell.js +1 -0
- package/dist/shell.js.map +2 -2
- package/dist/util/console.printer.js +4 -1
- package/dist/util/console.printer.js.map +2 -2
- package/dist/util/logger.js +9 -5
- package/dist/util/logger.js.map +2 -2
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +2 -2
- package/src/commands/import.ts +2 -2
- package/src/commands/remove.ts +20 -0
- package/src/localisation/en-GB.ts +2 -2
- package/src/services/ContensisCliService.ts +62 -7
- package/src/shell.ts +1 -0
- package/src/util/console.printer.ts +4 -1
- package/src/util/logger.ts +19 -17
- package/src/version.ts +1 -1
|
@@ -281,6 +281,7 @@ export const printNodesMigrateResult = (
|
|
|
281
281
|
showChanged?: boolean;
|
|
282
282
|
} = {}
|
|
283
283
|
) => {
|
|
284
|
+
log.raw(``);
|
|
284
285
|
for (const [projectId, counts] of Object.entries(migrateResult.nodes || {})) {
|
|
285
286
|
const importTitle =
|
|
286
287
|
action === 'delete'
|
|
@@ -479,7 +480,9 @@ export const printNodeTreeOutput = (
|
|
|
479
480
|
'N'
|
|
480
481
|
)} [no change]; ${statusColour('create')('C')} [create]; ${statusColour(
|
|
481
482
|
'update'
|
|
482
|
-
)('U')} [update]; ${statusColour('
|
|
483
|
+
)('U')} [update]; ${statusColour('delete')('D')} [delete]; ${statusColour(
|
|
484
|
+
'error'
|
|
485
|
+
)('E')} [error];`
|
|
483
486
|
);
|
|
484
487
|
log.info(
|
|
485
488
|
`Node properties: ${log.highlightText(
|
package/src/util/logger.ts
CHANGED
|
@@ -237,24 +237,26 @@ export class Logger {
|
|
|
237
237
|
logMethod: Function = console.info
|
|
238
238
|
) => {
|
|
239
239
|
if (consoleWidth) {
|
|
240
|
-
content
|
|
241
|
-
.split('\n')
|
|
242
|
-
.
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
240
|
+
const contentArray = content.endsWith('\n')
|
|
241
|
+
? content.split('\n').slice(0, -1)
|
|
242
|
+
: content.split('\n');
|
|
243
|
+
const contentLines = contentArray.slice(
|
|
244
|
+
0,
|
|
245
|
+
consoleWidth ? displayLength : undefined
|
|
246
|
+
);
|
|
247
|
+
for (const line of contentLines)
|
|
248
|
+
logMethod(
|
|
249
|
+
line
|
|
250
|
+
.split('~n')
|
|
251
|
+
.map(l =>
|
|
252
|
+
consoleWidth && strlen(l) > consoleWidth
|
|
253
|
+
? first(l, consoleWidth)
|
|
254
|
+
: l
|
|
255
|
+
)
|
|
256
|
+
.join('\n')
|
|
257
|
+
);
|
|
256
258
|
} else {
|
|
257
|
-
logMethod(content.replace(ansiEscapeCodes, ''));
|
|
259
|
+
logMethod(content.replace(ansiEscapeCodes, '').replaceAll('~n', '\n'));
|
|
258
260
|
}
|
|
259
261
|
|
|
260
262
|
const tableArray = content.split('\n');
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = "1.0.12-beta.
|
|
1
|
+
export const LIB_VERSION = "1.0.12-beta.9";
|