@mailmodo/cli 0.0.30-beta.pr32.51 → 0.0.30-beta.pr32.52
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.
|
@@ -43,7 +43,7 @@ export default class Edit extends BaseCommand {
|
|
|
43
43
|
json: flags.json ?? false,
|
|
44
44
|
yes: flags.yes ?? false,
|
|
45
45
|
};
|
|
46
|
-
const initialChange = flags.change
|
|
46
|
+
const initialChange = flags.change?.trim() || (await this.askChangeDescription());
|
|
47
47
|
await this.runEditStep(ctx, initialChange, editFlags);
|
|
48
48
|
}
|
|
49
49
|
async runEditStep(ctx, changeDescription, flags) {
|
|
@@ -79,11 +79,16 @@ export default class Emails extends BaseCommand {
|
|
|
79
79
|
this.log(`\n Opening ${template}...\n`);
|
|
80
80
|
const editor = process.env.VISUAL || process.env.EDITOR;
|
|
81
81
|
if (editor) {
|
|
82
|
-
const
|
|
83
|
-
await new Promise((resolve) => {
|
|
84
|
-
child
|
|
82
|
+
const [cmd, ...editorArgs] = editor.trim().split(/\s+/);
|
|
83
|
+
const launched = await new Promise((resolve) => {
|
|
84
|
+
const child = spawn(cmd, [...editorArgs, templatePath], {
|
|
85
|
+
stdio: 'inherit',
|
|
86
|
+
});
|
|
87
|
+
child.on('error', () => resolve(false));
|
|
88
|
+
child.on('close', () => resolve(true));
|
|
85
89
|
});
|
|
86
|
-
|
|
90
|
+
if (launched)
|
|
91
|
+
return;
|
|
87
92
|
}
|
|
88
93
|
if (await this.trySpawnEditor('code', templatePath))
|
|
89
94
|
return;
|
package/oclif.manifest.json
CHANGED
|
@@ -137,13 +137,14 @@
|
|
|
137
137
|
"index.js"
|
|
138
138
|
]
|
|
139
139
|
},
|
|
140
|
-
"
|
|
140
|
+
"domain": {
|
|
141
141
|
"aliases": [],
|
|
142
142
|
"args": {},
|
|
143
|
-
"description": "
|
|
143
|
+
"description": "Set up and verify your sending domain",
|
|
144
144
|
"examples": [
|
|
145
|
-
"<%= config.bin %>
|
|
146
|
-
"<%= config.bin %>
|
|
145
|
+
"<%= config.bin %> domain",
|
|
146
|
+
"<%= config.bin %> domain --verify",
|
|
147
|
+
"<%= config.bin %> domain --status"
|
|
147
148
|
],
|
|
148
149
|
"flags": {
|
|
149
150
|
"json": {
|
|
@@ -158,11 +159,23 @@
|
|
|
158
159
|
"name": "yes",
|
|
159
160
|
"allowNo": false,
|
|
160
161
|
"type": "boolean"
|
|
162
|
+
},
|
|
163
|
+
"status": {
|
|
164
|
+
"description": "Show domain health status",
|
|
165
|
+
"name": "status",
|
|
166
|
+
"allowNo": false,
|
|
167
|
+
"type": "boolean"
|
|
168
|
+
},
|
|
169
|
+
"verify": {
|
|
170
|
+
"description": "Verify DNS records",
|
|
171
|
+
"name": "verify",
|
|
172
|
+
"allowNo": false,
|
|
173
|
+
"type": "boolean"
|
|
161
174
|
}
|
|
162
175
|
},
|
|
163
176
|
"hasDynamicHelp": false,
|
|
164
177
|
"hiddenAliases": [],
|
|
165
|
-
"id": "
|
|
178
|
+
"id": "domain",
|
|
166
179
|
"pluginAlias": "@mailmodo/cli",
|
|
167
180
|
"pluginName": "@mailmodo/cli",
|
|
168
181
|
"pluginType": "core",
|
|
@@ -172,18 +185,17 @@
|
|
|
172
185
|
"relativePath": [
|
|
173
186
|
"dist",
|
|
174
187
|
"commands",
|
|
175
|
-
"
|
|
188
|
+
"domain",
|
|
176
189
|
"index.js"
|
|
177
190
|
]
|
|
178
191
|
},
|
|
179
|
-
"
|
|
192
|
+
"deploy": {
|
|
180
193
|
"aliases": [],
|
|
181
194
|
"args": {},
|
|
182
|
-
"description": "
|
|
195
|
+
"description": "Deploy email sequences and verify sending domain",
|
|
183
196
|
"examples": [
|
|
184
|
-
"<%= config.bin %>
|
|
185
|
-
"<%= config.bin %>
|
|
186
|
-
"<%= config.bin %> domain --status"
|
|
197
|
+
"<%= config.bin %> deploy",
|
|
198
|
+
"<%= config.bin %> deploy --yes"
|
|
187
199
|
],
|
|
188
200
|
"flags": {
|
|
189
201
|
"json": {
|
|
@@ -198,23 +210,11 @@
|
|
|
198
210
|
"name": "yes",
|
|
199
211
|
"allowNo": false,
|
|
200
212
|
"type": "boolean"
|
|
201
|
-
},
|
|
202
|
-
"status": {
|
|
203
|
-
"description": "Show domain health status",
|
|
204
|
-
"name": "status",
|
|
205
|
-
"allowNo": false,
|
|
206
|
-
"type": "boolean"
|
|
207
|
-
},
|
|
208
|
-
"verify": {
|
|
209
|
-
"description": "Verify DNS records",
|
|
210
|
-
"name": "verify",
|
|
211
|
-
"allowNo": false,
|
|
212
|
-
"type": "boolean"
|
|
213
213
|
}
|
|
214
214
|
},
|
|
215
215
|
"hasDynamicHelp": false,
|
|
216
216
|
"hiddenAliases": [],
|
|
217
|
-
"id": "
|
|
217
|
+
"id": "deploy",
|
|
218
218
|
"pluginAlias": "@mailmodo/cli",
|
|
219
219
|
"pluginName": "@mailmodo/cli",
|
|
220
220
|
"pluginType": "core",
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"relativePath": [
|
|
225
225
|
"dist",
|
|
226
226
|
"commands",
|
|
227
|
-
"
|
|
227
|
+
"deploy",
|
|
228
228
|
"index.js"
|
|
229
229
|
]
|
|
230
230
|
},
|
|
@@ -442,15 +442,19 @@
|
|
|
442
442
|
"index.js"
|
|
443
443
|
]
|
|
444
444
|
},
|
|
445
|
-
"
|
|
445
|
+
"preview": {
|
|
446
446
|
"aliases": [],
|
|
447
|
-
"args": {
|
|
448
|
-
|
|
447
|
+
"args": {
|
|
448
|
+
"id": {
|
|
449
|
+
"description": "Email template ID to preview",
|
|
450
|
+
"name": "id"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"description": "Preview an email in browser, as text, or send a test",
|
|
449
454
|
"examples": [
|
|
450
|
-
"<%= config.bin %>
|
|
451
|
-
"<%= config.bin %>
|
|
452
|
-
"<%= config.bin %>
|
|
453
|
-
"<%= config.bin %> logs --json"
|
|
455
|
+
"<%= config.bin %> preview welcome",
|
|
456
|
+
"<%= config.bin %> preview welcome --text",
|
|
457
|
+
"<%= config.bin %> preview welcome --send me@example.com"
|
|
454
458
|
],
|
|
455
459
|
"flags": {
|
|
456
460
|
"json": {
|
|
@@ -466,39 +470,23 @@
|
|
|
466
470
|
"allowNo": false,
|
|
467
471
|
"type": "boolean"
|
|
468
472
|
},
|
|
469
|
-
"
|
|
470
|
-
"description": "
|
|
471
|
-
"name": "
|
|
473
|
+
"send": {
|
|
474
|
+
"description": "Send test email to this address",
|
|
475
|
+
"name": "send",
|
|
472
476
|
"hasDynamicHelp": false,
|
|
473
477
|
"multiple": false,
|
|
474
478
|
"type": "option"
|
|
475
479
|
},
|
|
476
|
-
"
|
|
477
|
-
"description": "
|
|
478
|
-
"name": "
|
|
480
|
+
"text": {
|
|
481
|
+
"description": "Output plain text version (for AI agents)",
|
|
482
|
+
"name": "text",
|
|
479
483
|
"allowNo": false,
|
|
480
484
|
"type": "boolean"
|
|
481
|
-
},
|
|
482
|
-
"limit": {
|
|
483
|
-
"description": "Entries per page (max 200)",
|
|
484
|
-
"name": "limit",
|
|
485
|
-
"default": 50,
|
|
486
|
-
"hasDynamicHelp": false,
|
|
487
|
-
"multiple": false,
|
|
488
|
-
"type": "option"
|
|
489
|
-
},
|
|
490
|
-
"page": {
|
|
491
|
-
"description": "Page number",
|
|
492
|
-
"name": "page",
|
|
493
|
-
"default": 1,
|
|
494
|
-
"hasDynamicHelp": false,
|
|
495
|
-
"multiple": false,
|
|
496
|
-
"type": "option"
|
|
497
485
|
}
|
|
498
486
|
},
|
|
499
487
|
"hasDynamicHelp": false,
|
|
500
488
|
"hiddenAliases": [],
|
|
501
|
-
"id": "
|
|
489
|
+
"id": "preview",
|
|
502
490
|
"pluginAlias": "@mailmodo/cli",
|
|
503
491
|
"pluginName": "@mailmodo/cli",
|
|
504
492
|
"pluginType": "core",
|
|
@@ -508,23 +496,19 @@
|
|
|
508
496
|
"relativePath": [
|
|
509
497
|
"dist",
|
|
510
498
|
"commands",
|
|
511
|
-
"
|
|
499
|
+
"preview",
|
|
512
500
|
"index.js"
|
|
513
501
|
]
|
|
514
502
|
},
|
|
515
|
-
"
|
|
503
|
+
"logs": {
|
|
516
504
|
"aliases": [],
|
|
517
|
-
"args": {
|
|
518
|
-
|
|
519
|
-
"description": "Email template ID to preview",
|
|
520
|
-
"name": "id"
|
|
521
|
-
}
|
|
522
|
-
},
|
|
523
|
-
"description": "Preview an email in browser, as text, or send a test",
|
|
505
|
+
"args": {},
|
|
506
|
+
"description": "View email send logs and delivery events",
|
|
524
507
|
"examples": [
|
|
525
|
-
"<%= config.bin %>
|
|
526
|
-
"<%= config.bin %>
|
|
527
|
-
"<%= config.bin %>
|
|
508
|
+
"<%= config.bin %> logs",
|
|
509
|
+
"<%= config.bin %> logs --email sarah@example.com",
|
|
510
|
+
"<%= config.bin %> logs --failed",
|
|
511
|
+
"<%= config.bin %> logs --json"
|
|
528
512
|
],
|
|
529
513
|
"flags": {
|
|
530
514
|
"json": {
|
|
@@ -540,23 +524,39 @@
|
|
|
540
524
|
"allowNo": false,
|
|
541
525
|
"type": "boolean"
|
|
542
526
|
},
|
|
543
|
-
"
|
|
544
|
-
"description": "
|
|
545
|
-
"name": "
|
|
527
|
+
"email": {
|
|
528
|
+
"description": "Filter logs by contact email",
|
|
529
|
+
"name": "email",
|
|
546
530
|
"hasDynamicHelp": false,
|
|
547
531
|
"multiple": false,
|
|
548
532
|
"type": "option"
|
|
549
533
|
},
|
|
550
|
-
"
|
|
551
|
-
"description": "
|
|
552
|
-
"name": "
|
|
534
|
+
"failed": {
|
|
535
|
+
"description": "Show only failed/bounced events",
|
|
536
|
+
"name": "failed",
|
|
553
537
|
"allowNo": false,
|
|
554
538
|
"type": "boolean"
|
|
539
|
+
},
|
|
540
|
+
"limit": {
|
|
541
|
+
"description": "Entries per page (max 200)",
|
|
542
|
+
"name": "limit",
|
|
543
|
+
"default": 50,
|
|
544
|
+
"hasDynamicHelp": false,
|
|
545
|
+
"multiple": false,
|
|
546
|
+
"type": "option"
|
|
547
|
+
},
|
|
548
|
+
"page": {
|
|
549
|
+
"description": "Page number",
|
|
550
|
+
"name": "page",
|
|
551
|
+
"default": 1,
|
|
552
|
+
"hasDynamicHelp": false,
|
|
553
|
+
"multiple": false,
|
|
554
|
+
"type": "option"
|
|
555
555
|
}
|
|
556
556
|
},
|
|
557
557
|
"hasDynamicHelp": false,
|
|
558
558
|
"hiddenAliases": [],
|
|
559
|
-
"id": "
|
|
559
|
+
"id": "logs",
|
|
560
560
|
"pluginAlias": "@mailmodo/cli",
|
|
561
561
|
"pluginName": "@mailmodo/cli",
|
|
562
562
|
"pluginType": "core",
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
"relativePath": [
|
|
567
567
|
"dist",
|
|
568
568
|
"commands",
|
|
569
|
-
"
|
|
569
|
+
"logs",
|
|
570
570
|
"index.js"
|
|
571
571
|
]
|
|
572
572
|
},
|
|
@@ -657,5 +657,5 @@
|
|
|
657
657
|
]
|
|
658
658
|
}
|
|
659
659
|
},
|
|
660
|
-
"version": "0.0.30-beta.pr32.
|
|
660
|
+
"version": "0.0.30-beta.pr32.52"
|
|
661
661
|
}
|
package/package.json
CHANGED