@xano/cli 0.0.71-beta.0 → 0.0.71-beta.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/dist/commands/workspace/push/index.js +8 -2
- package/oclif.manifest.json +1250 -1250
- package/package.json +2 -1
|
@@ -219,7 +219,7 @@ Truncate all table records before importing
|
|
|
219
219
|
const preview = JSON.parse(dryRunText);
|
|
220
220
|
// Check if the server returned a valid dry-run response
|
|
221
221
|
if (preview && preview.summary) {
|
|
222
|
-
this.renderPreview(preview, shouldDelete, workspaceId);
|
|
222
|
+
this.renderPreview(preview, shouldDelete, workspaceId, flags.verbose);
|
|
223
223
|
// Check if there are any actual changes (exclude deletes when --delete is off)
|
|
224
224
|
const hasChanges = Object.values(preview.summary).some((c) => c.created > 0 || c.updated > 0 || (shouldDelete && c.deleted > 0) || c.truncated > 0);
|
|
225
225
|
if (!hasChanges) {
|
|
@@ -411,7 +411,7 @@ Truncate all table records before importing
|
|
|
411
411
|
});
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
|
-
renderPreview(result, willDelete, workspaceId) {
|
|
414
|
+
renderPreview(result, willDelete, workspaceId, verbose = false) {
|
|
415
415
|
const typeLabels = {
|
|
416
416
|
addon: 'Addons',
|
|
417
417
|
agent: 'Agents',
|
|
@@ -469,6 +469,9 @@ Truncate all table records before importing
|
|
|
469
469
|
if (op.details) {
|
|
470
470
|
this.log(` ${' '.repeat(16)} ${' '.repeat(18)} ${ux.colorize('dim', op.details)}`);
|
|
471
471
|
}
|
|
472
|
+
if (verbose && op.reason) {
|
|
473
|
+
this.log(` ${' '.repeat(16)} ${' '.repeat(18)} ${ux.colorize('dim', `reason: ${op.reason}`)}`);
|
|
474
|
+
}
|
|
472
475
|
}
|
|
473
476
|
}
|
|
474
477
|
// Split destructive ops by category
|
|
@@ -487,6 +490,9 @@ Truncate all table records before importing
|
|
|
487
490
|
if (op.details) {
|
|
488
491
|
this.log(` ${' '.repeat(16)} ${' '.repeat(18)} ${ux.colorize('dim', op.details)}`);
|
|
489
492
|
}
|
|
493
|
+
if (verbose && op.reason) {
|
|
494
|
+
this.log(` ${' '.repeat(16)} ${' '.repeat(18)} ${ux.colorize('dim', `reason: ${op.reason}`)}`);
|
|
495
|
+
}
|
|
490
496
|
}
|
|
491
497
|
}
|
|
492
498
|
// Warn about potential field renames (add + drop on same table)
|