@wraps.dev/cli 2.19.7 → 2.19.8
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/cli.js
CHANGED
|
@@ -34592,7 +34592,7 @@ async function destroy(options) {
|
|
|
34592
34592
|
spinner10.stop("AWS credentials validation failed");
|
|
34593
34593
|
throw error;
|
|
34594
34594
|
}
|
|
34595
|
-
const region = await getAWSRegion();
|
|
34595
|
+
const region = options.region || await getAWSRegion();
|
|
34596
34596
|
const metadata = await loadConnectionMetadata(identity.accountId, region);
|
|
34597
34597
|
const deployedServices = [];
|
|
34598
34598
|
if (metadata?.services?.email) {
|
|
@@ -34662,7 +34662,7 @@ init_pulumi();
|
|
|
34662
34662
|
import * as clack43 from "@clack/prompts";
|
|
34663
34663
|
import * as pulumi26 from "@pulumi/pulumi";
|
|
34664
34664
|
import pc46 from "picocolors";
|
|
34665
|
-
async function status(
|
|
34665
|
+
async function status(options) {
|
|
34666
34666
|
await ensurePulumiInstalled();
|
|
34667
34667
|
const startTime = Date.now();
|
|
34668
34668
|
const progress = new DeploymentProgress();
|
|
@@ -34676,7 +34676,7 @@ async function status(_options) {
|
|
|
34676
34676
|
if (!isJsonMode()) {
|
|
34677
34677
|
progress.info(`AWS Account: ${pc46.cyan(identity.accountId)}`);
|
|
34678
34678
|
}
|
|
34679
|
-
const region = await getAWSRegion();
|
|
34679
|
+
const region = options.region || await getAWSRegion();
|
|
34680
34680
|
if (!isJsonMode()) {
|
|
34681
34681
|
progress.info(`Region: ${pc46.cyan(region)}`);
|
|
34682
34682
|
}
|
|
@@ -37254,7 +37254,7 @@ async function smsTest(options) {
|
|
|
37254
37254
|
"Validating AWS credentials",
|
|
37255
37255
|
async () => validateAWSCredentials()
|
|
37256
37256
|
);
|
|
37257
|
-
const region = await getAWSRegion();
|
|
37257
|
+
const region = options.region || await getAWSRegion();
|
|
37258
37258
|
const metadata = await loadConnectionMetadata(identity.accountId, region);
|
|
37259
37259
|
if (!metadata?.services?.sms) {
|
|
37260
37260
|
progress.stop();
|
|
@@ -38436,7 +38436,7 @@ async function smsVerifyNumber(options) {
|
|
|
38436
38436
|
"Validating AWS credentials",
|
|
38437
38437
|
async () => validateAWSCredentials()
|
|
38438
38438
|
);
|
|
38439
|
-
const region = await getAWSRegion();
|
|
38439
|
+
const region = options.region || await getAWSRegion();
|
|
38440
38440
|
const metadata = await loadConnectionMetadata(identity.accountId, region);
|
|
38441
38441
|
if (!metadata?.services?.sms) {
|
|
38442
38442
|
progress.stop();
|
|
@@ -39580,7 +39580,7 @@ if (!primaryCommand) {
|
|
|
39580
39580
|
});
|
|
39581
39581
|
break;
|
|
39582
39582
|
case "status":
|
|
39583
|
-
await status({ account: flags.account });
|
|
39583
|
+
await status({ account: flags.account, region: flags.region });
|
|
39584
39584
|
break;
|
|
39585
39585
|
case "console":
|
|
39586
39586
|
await dashboard({ port: flags.port, noOpen: flags.noOpen });
|
|
@@ -40071,6 +40071,7 @@ Run ${pc59.cyan("wraps --help")} for available commands.
|
|
|
40071
40071
|
case "status":
|
|
40072
40072
|
await smsStatus({
|
|
40073
40073
|
account: flags.account,
|
|
40074
|
+
region: flags.region,
|
|
40074
40075
|
json: flags.json
|
|
40075
40076
|
});
|
|
40076
40077
|
break;
|
|
@@ -40078,6 +40079,7 @@ Run ${pc59.cyan("wraps --help")} for available commands.
|
|
|
40078
40079
|
await smsTest({
|
|
40079
40080
|
to: flags.to,
|
|
40080
40081
|
message: flags.message,
|
|
40082
|
+
region: flags.region,
|
|
40081
40083
|
json: flags.json
|
|
40082
40084
|
});
|
|
40083
40085
|
break;
|
|
@@ -40109,6 +40111,7 @@ Run ${pc59.cyan("wraps --help")} for available commands.
|
|
|
40109
40111
|
list: flags.list,
|
|
40110
40112
|
delete: flags.delete,
|
|
40111
40113
|
resend: flags.resend,
|
|
40114
|
+
region: flags.region,
|
|
40112
40115
|
json: flags.json
|
|
40113
40116
|
});
|
|
40114
40117
|
break;
|
|
@@ -40343,6 +40346,7 @@ Available commands: ${pc59.cyan("setup")}, ${pc59.cyan("doctor")}
|
|
|
40343
40346
|
case "status":
|
|
40344
40347
|
await status({
|
|
40345
40348
|
account: flags.account,
|
|
40349
|
+
region: flags.region,
|
|
40346
40350
|
json: flags.json
|
|
40347
40351
|
});
|
|
40348
40352
|
break;
|
|
@@ -40356,6 +40360,7 @@ Available commands: ${pc59.cyan("setup")}, ${pc59.cyan("doctor")}
|
|
|
40356
40360
|
await destroy({
|
|
40357
40361
|
force: flags.force,
|
|
40358
40362
|
preview: flags.preview,
|
|
40363
|
+
region: flags.region,
|
|
40359
40364
|
json: flags.json
|
|
40360
40365
|
});
|
|
40361
40366
|
break;
|