@xano/cli 0.0.48 → 0.0.50

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.
@@ -78,6 +78,10 @@ User Information:
78
78
  }
79
79
  else {
80
80
  // summary format
81
+ this.log('CLI Information:');
82
+ this.log(` Profile: ${profileName}`);
83
+ this.log(` Version: ${this.config.version}`);
84
+ this.log('');
81
85
  this.log('User Information:');
82
86
  if (data.id !== undefined) {
83
87
  this.log(` ID: ${data.id}`);
@@ -144,6 +144,7 @@ Output release details as JSON
144
144
  Authorization: `Bearer ${profile.access_token}`,
145
145
  'Content-Type': 'text/x-xanoscript',
146
146
  };
147
+ const startTime = Date.now();
147
148
  try {
148
149
  const response = await this.verboseFetch(apiUrl, {
149
150
  body: multidoc,
@@ -165,7 +166,7 @@ Output release details as JSON
165
166
  }
166
167
  this.error(errorMessage);
167
168
  }
168
- const release = await response.json();
169
+ const release = (await response.json());
169
170
  if (flags.output === 'json') {
170
171
  this.log(JSON.stringify(release, null, 2));
171
172
  }
@@ -177,7 +178,9 @@ Output release details as JSON
177
178
  this.log(` Hotfix: true`);
178
179
  if (release.description)
179
180
  this.log(` Description: ${release.description}`);
181
+ const elapsed = ((Date.now() - startTime) / 1000).toFixed(1);
180
182
  this.log(` Documents: ${documents.length}`);
183
+ this.log(` Time: ${elapsed}s`);
181
184
  }
182
185
  }
183
186
  catch (error) {
@@ -167,6 +167,7 @@ Truncate all table records before importing
167
167
  Authorization: `Bearer ${profile.access_token}`,
168
168
  'Content-Type': 'text/x-xanoscript',
169
169
  };
170
+ const startTime = Date.now();
170
171
  try {
171
172
  const response = await this.verboseFetch(apiUrl, {
172
173
  body: multidoc,
@@ -202,7 +203,8 @@ Truncate all table records before importing
202
203
  this.error(`Failed to push multidoc: ${String(error)}`);
203
204
  }
204
205
  }
205
- this.log(`Pushed ${documents.length} documents to tenant ${tenantName} from ${args.directory}`);
206
+ const elapsed = ((Date.now() - startTime) / 1000).toFixed(1);
207
+ this.log(`Pushed ${documents.length} documents to tenant ${tenantName} from ${args.directory} in ${elapsed}s`);
206
208
  }
207
209
  /**
208
210
  * Recursively collect all .xs files from a directory, sorted by
@@ -181,6 +181,7 @@ Push schema only, skip records and environment variables
181
181
  Authorization: `Bearer ${profile.access_token}`,
182
182
  'Content-Type': 'text/x-xanoscript',
183
183
  };
184
+ const startTime = Date.now();
184
185
  try {
185
186
  const response = await this.verboseFetch(apiUrl, {
186
187
  body: multidoc,
@@ -276,7 +277,8 @@ Push schema only, skip records and environment variables
276
277
  this.error(`Failed to push multidoc: ${String(error)}`);
277
278
  }
278
279
  }
279
- this.log(`Pushed ${documentEntries.length} documents from ${args.directory}`);
280
+ const elapsed = ((Date.now() - startTime) / 1000).toFixed(1);
281
+ this.log(`Pushed ${documentEntries.length} documents from ${args.directory} in ${elapsed}s`);
280
282
  }
281
283
  /**
282
284
  * Recursively collect all .xs files from a directory, sorted by