ardent-cli 0.0.8 → 0.0.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/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -227,6 +227,7 @@ function isPermissionError(err) {
|
|
|
227
227
|
// src/commands/branch/create.ts
|
|
228
228
|
async function createAction(name, options) {
|
|
229
229
|
try {
|
|
230
|
+
const startTime = performance.now();
|
|
230
231
|
const job = await api.post("/v1/cli/jobs/create", {
|
|
231
232
|
name
|
|
232
233
|
});
|
|
@@ -254,7 +255,8 @@ async function createAction(name, options) {
|
|
|
254
255
|
cachedBranches.push(branch);
|
|
255
256
|
setCacheEntry("branches", cachedBranches);
|
|
256
257
|
setCurrentBranch(name);
|
|
257
|
-
|
|
258
|
+
const elapsed = ((performance.now() - startTime) / 1e3).toFixed(1);
|
|
259
|
+
console.log(`\u2713 Branch '${name}' created and checked out in ${elapsed}s`);
|
|
258
260
|
if (branch.branch_url) {
|
|
259
261
|
console.log(`
|
|
260
262
|
${branch.branch_url}`);
|