@wraps.dev/cli 3.13.1 → 3.13.2
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
|
@@ -49626,6 +49626,7 @@ async function inboundInit(options) {
|
|
|
49626
49626
|
const primaryTrackedDomain = trackedDomains.find((trackedDomain) => trackedDomain.isPrimary) || trackedDomains[0];
|
|
49627
49627
|
domain = primaryTrackedDomain.domain;
|
|
49628
49628
|
} else {
|
|
49629
|
+
ensureInteractive("Domain selection", "--yes");
|
|
49629
49630
|
const selected = await clack27.select({
|
|
49630
49631
|
message: "Which domain do you want to receive email on?",
|
|
49631
49632
|
options: trackedDomains.map((d6) => ({
|
|
@@ -49651,6 +49652,7 @@ async function inboundInit(options) {
|
|
|
49651
49652
|
`${pc28.bold("Estimated cost:")} ~$0.05/mo for 10K emails (S3 + Lambda)`
|
|
49652
49653
|
);
|
|
49653
49654
|
if (!(options.yes || options.preview)) {
|
|
49655
|
+
ensureInteractive("Deployment confirmation", "--yes");
|
|
49654
49656
|
const confirmed = await clack27.confirm({
|
|
49655
49657
|
message: "Deploy inbound email infrastructure?",
|
|
49656
49658
|
initialValue: true
|
|
@@ -49951,6 +49953,7 @@ Deploy first: ${pc28.cyan("wraps email inbound init")}
|
|
|
49951
49953
|
}
|
|
49952
49954
|
}
|
|
49953
49955
|
}
|
|
49956
|
+
ensureInteractive("Destroy confirmation", "--force");
|
|
49954
49957
|
const confirmed = await clack27.confirm({
|
|
49955
49958
|
message: "Are you sure you want to destroy inbound email infrastructure?",
|
|
49956
49959
|
initialValue: false
|
|
@@ -50528,6 +50531,10 @@ Deploy first: ${pc28.cyan("wraps email inbound init")}
|
|
|
50528
50531
|
} else if (allDomains.length === 1) {
|
|
50529
50532
|
parentDomain = allDomains[0];
|
|
50530
50533
|
} else {
|
|
50534
|
+
ensureInteractive(
|
|
50535
|
+
"Parent domain selection",
|
|
50536
|
+
"--domain <domain> (or --yes)"
|
|
50537
|
+
);
|
|
50531
50538
|
const selected = await clack27.select({
|
|
50532
50539
|
message: "Which domain should the inbound subdomain be under?",
|
|
50533
50540
|
options: allDomains.map((d6) => ({
|
|
@@ -50756,6 +50763,10 @@ Deploy first: ${pc28.cyan("wraps email inbound init")}
|
|
|
50756
50763
|
if (inboundDomains.length === 1) {
|
|
50757
50764
|
domainToRemove = inboundDomains[0].receivingDomain;
|
|
50758
50765
|
} else {
|
|
50766
|
+
ensureInteractive(
|
|
50767
|
+
"Inbound domain selection",
|
|
50768
|
+
"--domain <receiving-domain>"
|
|
50769
|
+
);
|
|
50759
50770
|
const selected = await clack27.select({
|
|
50760
50771
|
message: "Which inbound domain do you want to remove?",
|
|
50761
50772
|
options: inboundDomains.map((d6) => ({
|
|
@@ -50793,6 +50804,7 @@ Deploy first: ${pc28.cyan("wraps email inbound init")}
|
|
|
50793
50804
|
clack27.log.info(pc28.dim(` ${record.type} ${record.name} \u2192 ${value}`));
|
|
50794
50805
|
}
|
|
50795
50806
|
}
|
|
50807
|
+
ensureInteractive("Removal confirmation", "--yes");
|
|
50796
50808
|
const confirmed = await clack27.confirm({
|
|
50797
50809
|
message: `Remove inbound domain ${pc28.cyan(domainToRemove)}?`,
|
|
50798
50810
|
initialValue: false
|