@layr-labs/ecloud-cli 0.3.4 → 0.4.0-dev
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/VERSION +2 -2
- package/dist/commands/auth/whoami.js +1 -0
- package/dist/commands/auth/whoami.js.map +1 -1
- package/dist/commands/billing/cancel.js +8 -7
- package/dist/commands/billing/cancel.js.map +1 -1
- package/dist/commands/billing/status.js +20 -19
- package/dist/commands/billing/status.js.map +1 -1
- package/dist/commands/billing/subscribe.js +13 -12
- package/dist/commands/billing/subscribe.js.map +1 -1
- package/dist/commands/compute/app/create.js +1 -0
- package/dist/commands/compute/app/create.js.map +1 -1
- package/dist/commands/compute/app/deploy.js +50 -21
- package/dist/commands/compute/app/deploy.js.map +1 -1
- package/dist/commands/compute/app/info.js +32 -31
- package/dist/commands/compute/app/info.js.map +1 -1
- package/dist/commands/compute/app/list.js +31 -30
- package/dist/commands/compute/app/list.js.map +1 -1
- package/dist/commands/compute/app/logs.js +2 -1
- package/dist/commands/compute/app/logs.js.map +1 -1
- package/dist/commands/compute/app/profile/set.js +6 -5
- package/dist/commands/compute/app/profile/set.js.map +1 -1
- package/dist/commands/compute/app/releases.js +18 -17
- package/dist/commands/compute/app/releases.js.map +1 -1
- package/dist/commands/compute/app/start.js +6 -5
- package/dist/commands/compute/app/start.js.map +1 -1
- package/dist/commands/compute/app/stop.js +6 -5
- package/dist/commands/compute/app/stop.js.map +1 -1
- package/dist/commands/compute/app/terminate.js +6 -5
- package/dist/commands/compute/app/terminate.js.map +1 -1
- package/dist/commands/compute/app/upgrade.js +51 -22
- package/dist/commands/compute/app/upgrade.js.map +1 -1
- package/dist/commands/compute/build/info.js +16 -15
- package/dist/commands/compute/build/info.js.map +1 -1
- package/dist/commands/compute/build/list.js +13 -12
- package/dist/commands/compute/build/list.js.map +1 -1
- package/dist/commands/compute/build/logs.js +4 -3
- package/dist/commands/compute/build/logs.js.map +1 -1
- package/dist/commands/compute/build/status.js +9 -8
- package/dist/commands/compute/build/status.js.map +1 -1
- package/dist/commands/compute/build/submit.js +16 -15
- package/dist/commands/compute/build/submit.js.map +1 -1
- package/dist/commands/compute/build/verify.js +10 -9
- package/dist/commands/compute/build/verify.js.map +1 -1
- package/dist/commands/compute/environment/set.js +1 -0
- package/dist/commands/compute/environment/set.js.map +1 -1
- package/dist/commands/compute/undelegate.js +6 -5
- package/dist/commands/compute/undelegate.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// src/commands/compute/build/list.ts
|
|
4
4
|
import { Command, Flags as Flags2 } from "@oclif/core";
|
|
5
|
-
import
|
|
5
|
+
import chalk3 from "chalk";
|
|
6
6
|
import { privateKeyToAccount as privateKeyToAccount5 } from "viem/accounts";
|
|
7
7
|
import { addHexPrefix as addHexPrefix3 } from "@layr-labs/ecloud-sdk";
|
|
8
8
|
|
|
@@ -12,6 +12,7 @@ import { getBuildType as getBuildType2 } from "@layr-labs/ecloud-sdk";
|
|
|
12
12
|
|
|
13
13
|
// src/utils/prompts.ts
|
|
14
14
|
import { input, select, password, confirm as inquirerConfirm } from "@inquirer/prompts";
|
|
15
|
+
import chalk from "chalk";
|
|
15
16
|
import fs3 from "fs";
|
|
16
17
|
import path3 from "path";
|
|
17
18
|
import os3 from "os";
|
|
@@ -158,7 +159,7 @@ var APPS_DIR = path2.join(CONFIG_DIR, "apps");
|
|
|
158
159
|
|
|
159
160
|
// src/utils/version.ts
|
|
160
161
|
function getCliVersion() {
|
|
161
|
-
return true ? "0.
|
|
162
|
+
return true ? "0.4.0-dev" : "0.0.0";
|
|
162
163
|
}
|
|
163
164
|
function getClientId() {
|
|
164
165
|
return `ecloud-cli/v${getCliVersion()}`;
|
|
@@ -365,13 +366,13 @@ async function withTelemetry(command, action) {
|
|
|
365
366
|
|
|
366
367
|
// src/utils/buildInfo.ts
|
|
367
368
|
import { BUILD_STATUS } from "@layr-labs/ecloud-sdk";
|
|
368
|
-
import
|
|
369
|
+
import chalk2 from "chalk";
|
|
369
370
|
function formatBuildStatus(status) {
|
|
370
371
|
const s = status;
|
|
371
372
|
const color = {
|
|
372
|
-
[BUILD_STATUS.BUILDING]:
|
|
373
|
-
[BUILD_STATUS.SUCCESS]:
|
|
374
|
-
[BUILD_STATUS.FAILED]:
|
|
373
|
+
[BUILD_STATUS.BUILDING]: chalk2.yellow,
|
|
374
|
+
[BUILD_STATUS.SUCCESS]: chalk2.green,
|
|
375
|
+
[BUILD_STATUS.FAILED]: chalk2.red
|
|
375
376
|
}[s];
|
|
376
377
|
return color ? color(status) : status;
|
|
377
378
|
}
|
|
@@ -463,7 +464,7 @@ var BuildList = class _BuildList extends Command {
|
|
|
463
464
|
return;
|
|
464
465
|
}
|
|
465
466
|
this.log("");
|
|
466
|
-
this.log(
|
|
467
|
+
this.log(chalk3.bold(`Builds for ${billingAddress} (${validatedFlags.environment}):`));
|
|
467
468
|
this.log("");
|
|
468
469
|
for (const b of builds) {
|
|
469
470
|
const buildId = b.buildId || "-";
|
|
@@ -477,18 +478,18 @@ var BuildList = class _BuildList extends Command {
|
|
|
477
478
|
provenanceSignature: b.provenanceSignature,
|
|
478
479
|
dependencies: b.dependencies
|
|
479
480
|
});
|
|
480
|
-
this.log(`${status} ${
|
|
481
|
+
this.log(`${status} ${chalk3.cyan(buildId)} ${created}`);
|
|
481
482
|
this.log(` Repo: ${repo}`);
|
|
482
483
|
this.log(` Commit: ${commit}`);
|
|
483
484
|
this.log(` Image: ${image}`);
|
|
484
485
|
this.log(` Prov: ${prov}`);
|
|
485
|
-
this.log(
|
|
486
|
+
this.log(chalk3.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
486
487
|
}
|
|
487
488
|
this.log("");
|
|
488
|
-
this.log(
|
|
489
|
+
this.log(chalk3.gray(`Showing ${builds.length} build(s) (limit=${limit}, offset=${offset})`));
|
|
489
490
|
this.log(
|
|
490
|
-
|
|
491
|
-
`Tip: use ${
|
|
491
|
+
chalk3.gray(
|
|
492
|
+
`Tip: use ${chalk3.yellow("ecloud compute build info <buildId>")} for full details, or add ${chalk3.yellow(
|
|
492
493
|
"--json"
|
|
493
494
|
)} to copy/paste.`
|
|
494
495
|
)
|