@xano/cli 0.0.69-beta.2 → 0.0.71-beta.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command, Flags } from '@oclif/core';
|
|
1
|
+
import { Command, Flags, ux } from '@oclif/core';
|
|
2
2
|
import * as yaml from 'js-yaml';
|
|
3
3
|
import * as fs from 'node:fs';
|
|
4
4
|
import * as os from 'node:os';
|
|
@@ -84,7 +84,7 @@ Profile: default
|
|
|
84
84
|
this.log('Available profiles:\n');
|
|
85
85
|
for (const name of profileNames.sort()) {
|
|
86
86
|
const profile = credentials.profiles[name];
|
|
87
|
-
const isDefault = credentials.default === name ? ' [DEFAULT]' : '';
|
|
87
|
+
const isDefault = credentials.default === name ? ` ${ux.colorize('yellow', '[DEFAULT]')}` : '';
|
|
88
88
|
this.log(`Profile: ${name}${isDefault}`);
|
|
89
89
|
this.log(` Account Origin: ${profile.account_origin || '(not set)'}`);
|
|
90
90
|
this.log(` Instance Origin: ${profile.instance_origin}`);
|
|
@@ -107,8 +107,11 @@ Profile: default
|
|
|
107
107
|
else {
|
|
108
108
|
this.log('Available profiles:');
|
|
109
109
|
for (const name of profileNames.sort()) {
|
|
110
|
-
const
|
|
111
|
-
|
|
110
|
+
const profile = credentials.profiles[name];
|
|
111
|
+
const isDefault = credentials.default === name ? ` ${ux.colorize('yellow', '[DEFAULT]')}` : '';
|
|
112
|
+
const instance = profile.instance_origin ? ` (${profile.instance_origin.replace(/^https?:\/\//, '')}` : ' (';
|
|
113
|
+
const workspace = profile.workspace ? `, workspace: ${profile.workspace})` : ')';
|
|
114
|
+
this.log(` - ${name}${isDefault}${instance}${workspace}`);
|
|
112
115
|
}
|
|
113
116
|
}
|
|
114
117
|
}
|
|
@@ -53,15 +53,13 @@ Truncate all table records before importing
|
|
|
53
53
|
required: false,
|
|
54
54
|
}),
|
|
55
55
|
delete: Flags.boolean({
|
|
56
|
-
allowNo: true,
|
|
57
56
|
default: false,
|
|
58
|
-
description: 'Delete workspace objects not included in the push
|
|
57
|
+
description: 'Delete workspace objects not included in the push',
|
|
59
58
|
required: false,
|
|
60
59
|
}),
|
|
61
60
|
env: Flags.boolean({
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
description: 'Include environment variables in import (default: true, use --no-env to exclude)',
|
|
61
|
+
default: false,
|
|
62
|
+
description: 'Include environment variables in import',
|
|
65
63
|
required: false,
|
|
66
64
|
}),
|
|
67
65
|
partial: Flags.boolean({
|
|
@@ -70,9 +68,8 @@ Truncate all table records before importing
|
|
|
70
68
|
required: false,
|
|
71
69
|
}),
|
|
72
70
|
records: Flags.boolean({
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
description: 'Include records in import (default: true, use --no-records to exclude)',
|
|
71
|
+
default: false,
|
|
72
|
+
description: 'Include records in import',
|
|
76
73
|
required: false,
|
|
77
74
|
}),
|
|
78
75
|
'sync-guids': Flags.boolean({
|
|
@@ -430,6 +427,7 @@ Truncate all table records before importing
|
|
|
430
427
|
toolset: 'Toolsets',
|
|
431
428
|
trigger: 'Triggers',
|
|
432
429
|
workflow_test: 'Workflow Tests',
|
|
430
|
+
workspace: 'Workspace Settings',
|
|
433
431
|
};
|
|
434
432
|
this.log('');
|
|
435
433
|
const wsLabel = result.workspace_name ? `${result.workspace_name} (${workspaceId})` : `Workspace ${workspaceId}`;
|
|
@@ -468,7 +466,7 @@ Truncate all table records before importing
|
|
|
468
466
|
const color = op.action === 'update' || op.action === 'update_field' ? 'yellow' : 'green';
|
|
469
467
|
const actionLabel = op.action.toUpperCase();
|
|
470
468
|
this.log(` ${ux.colorize(color, actionLabel.padEnd(16))} ${op.type.padEnd(18)} ${op.name}`);
|
|
471
|
-
if (
|
|
469
|
+
if (op.details) {
|
|
472
470
|
this.log(` ${' '.repeat(16)} ${' '.repeat(18)} ${ux.colorize('dim', op.details)}`);
|
|
473
471
|
}
|
|
474
472
|
}
|