@mailmodo/cli 0.0.24 → 0.0.25
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/commands/deploy/index.js +16 -5
- package/oclif.manifest.json +65 -65
- package/package.json +1 -1
|
@@ -200,12 +200,23 @@ export default class Deploy extends BaseCommand {
|
|
|
200
200
|
this.log(` ${'─'.repeat(53)}\n`);
|
|
201
201
|
this.log(` ${chalk.cyan(sdkSnippet.install ?? 'npm install @mailmodo/sdk')}\n`);
|
|
202
202
|
this.log(` ${chalk.dim("import { track, identify } from '@mailmodo/sdk'")}\n`);
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
this.log(` ${chalk.dim(
|
|
203
|
+
if (sdkSnippet.examples) {
|
|
204
|
+
this.log(` ${chalk.dim('// Example usage:')}`);
|
|
205
|
+
this.log(` ${chalk.dim(sdkSnippet.examples.track)}`);
|
|
206
|
+
this.log(` ${chalk.dim(sdkSnippet.examples.identify)}\n`);
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
const trackCalls = [...new Set(sdkSnippet.trackCalls ?? [])];
|
|
209
|
+
for (const call of trackCalls) {
|
|
210
|
+
this.log(` ${chalk.dim(call)}`);
|
|
211
|
+
}
|
|
212
|
+
if (trackCalls.length > 0)
|
|
213
|
+
this.log('');
|
|
214
|
+
const identifyCalls = [...new Set(sdkSnippet.identifyCalls ?? [])];
|
|
215
|
+
for (const call of identifyCalls) {
|
|
216
|
+
this.log(` ${chalk.dim(call)}`);
|
|
217
|
+
}
|
|
218
|
+
if (identifyCalls.length > 0)
|
|
219
|
+
this.log('');
|
|
209
220
|
this.log(` Full SDK docs: ${chalk.cyan('mailmodo.com/docs/sdk')}\n`);
|
|
210
221
|
this.log(` ${'─'.repeat(53)}\n`);
|
|
211
222
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -381,6 +381,44 @@
|
|
|
381
381
|
"index.js"
|
|
382
382
|
]
|
|
383
383
|
},
|
|
384
|
+
"logout": {
|
|
385
|
+
"aliases": [],
|
|
386
|
+
"args": {},
|
|
387
|
+
"description": "Sign out by removing saved credentials from this machine",
|
|
388
|
+
"examples": [
|
|
389
|
+
"<%= config.bin %> logout"
|
|
390
|
+
],
|
|
391
|
+
"flags": {
|
|
392
|
+
"json": {
|
|
393
|
+
"description": "Output as JSON",
|
|
394
|
+
"name": "json",
|
|
395
|
+
"allowNo": false,
|
|
396
|
+
"type": "boolean"
|
|
397
|
+
},
|
|
398
|
+
"yes": {
|
|
399
|
+
"char": "y",
|
|
400
|
+
"description": "Skip confirmation prompts",
|
|
401
|
+
"name": "yes",
|
|
402
|
+
"allowNo": false,
|
|
403
|
+
"type": "boolean"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"hasDynamicHelp": false,
|
|
407
|
+
"hiddenAliases": [],
|
|
408
|
+
"id": "logout",
|
|
409
|
+
"pluginAlias": "@mailmodo/cli",
|
|
410
|
+
"pluginName": "@mailmodo/cli",
|
|
411
|
+
"pluginType": "core",
|
|
412
|
+
"strict": true,
|
|
413
|
+
"enableJsonFlag": false,
|
|
414
|
+
"isESM": true,
|
|
415
|
+
"relativePath": [
|
|
416
|
+
"dist",
|
|
417
|
+
"commands",
|
|
418
|
+
"logout",
|
|
419
|
+
"index.js"
|
|
420
|
+
]
|
|
421
|
+
},
|
|
384
422
|
"logs": {
|
|
385
423
|
"aliases": [],
|
|
386
424
|
"args": {},
|
|
@@ -451,12 +489,19 @@
|
|
|
451
489
|
"index.js"
|
|
452
490
|
]
|
|
453
491
|
},
|
|
454
|
-
"
|
|
492
|
+
"preview": {
|
|
455
493
|
"aliases": [],
|
|
456
|
-
"args": {
|
|
457
|
-
|
|
494
|
+
"args": {
|
|
495
|
+
"id": {
|
|
496
|
+
"description": "Email template ID to preview",
|
|
497
|
+
"name": "id"
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"description": "Preview an email in browser, as text, or send a test",
|
|
458
501
|
"examples": [
|
|
459
|
-
"<%= config.bin %>
|
|
502
|
+
"<%= config.bin %> preview welcome",
|
|
503
|
+
"<%= config.bin %> preview welcome --text",
|
|
504
|
+
"<%= config.bin %> preview welcome --send me@example.com"
|
|
460
505
|
],
|
|
461
506
|
"flags": {
|
|
462
507
|
"json": {
|
|
@@ -471,11 +516,24 @@
|
|
|
471
516
|
"name": "yes",
|
|
472
517
|
"allowNo": false,
|
|
473
518
|
"type": "boolean"
|
|
519
|
+
},
|
|
520
|
+
"send": {
|
|
521
|
+
"description": "Send test email to this address",
|
|
522
|
+
"name": "send",
|
|
523
|
+
"hasDynamicHelp": false,
|
|
524
|
+
"multiple": false,
|
|
525
|
+
"type": "option"
|
|
526
|
+
},
|
|
527
|
+
"text": {
|
|
528
|
+
"description": "Output plain text version (for AI agents)",
|
|
529
|
+
"name": "text",
|
|
530
|
+
"allowNo": false,
|
|
531
|
+
"type": "boolean"
|
|
474
532
|
}
|
|
475
533
|
},
|
|
476
534
|
"hasDynamicHelp": false,
|
|
477
535
|
"hiddenAliases": [],
|
|
478
|
-
"id": "
|
|
536
|
+
"id": "preview",
|
|
479
537
|
"pluginAlias": "@mailmodo/cli",
|
|
480
538
|
"pluginName": "@mailmodo/cli",
|
|
481
539
|
"pluginType": "core",
|
|
@@ -485,7 +543,7 @@
|
|
|
485
543
|
"relativePath": [
|
|
486
544
|
"dist",
|
|
487
545
|
"commands",
|
|
488
|
-
"
|
|
546
|
+
"preview",
|
|
489
547
|
"index.js"
|
|
490
548
|
]
|
|
491
549
|
},
|
|
@@ -574,65 +632,7 @@
|
|
|
574
632
|
"status",
|
|
575
633
|
"index.js"
|
|
576
634
|
]
|
|
577
|
-
},
|
|
578
|
-
"preview": {
|
|
579
|
-
"aliases": [],
|
|
580
|
-
"args": {
|
|
581
|
-
"id": {
|
|
582
|
-
"description": "Email template ID to preview",
|
|
583
|
-
"name": "id"
|
|
584
|
-
}
|
|
585
|
-
},
|
|
586
|
-
"description": "Preview an email in browser, as text, or send a test",
|
|
587
|
-
"examples": [
|
|
588
|
-
"<%= config.bin %> preview welcome",
|
|
589
|
-
"<%= config.bin %> preview welcome --text",
|
|
590
|
-
"<%= config.bin %> preview welcome --send me@example.com"
|
|
591
|
-
],
|
|
592
|
-
"flags": {
|
|
593
|
-
"json": {
|
|
594
|
-
"description": "Output as JSON",
|
|
595
|
-
"name": "json",
|
|
596
|
-
"allowNo": false,
|
|
597
|
-
"type": "boolean"
|
|
598
|
-
},
|
|
599
|
-
"yes": {
|
|
600
|
-
"char": "y",
|
|
601
|
-
"description": "Skip confirmation prompts",
|
|
602
|
-
"name": "yes",
|
|
603
|
-
"allowNo": false,
|
|
604
|
-
"type": "boolean"
|
|
605
|
-
},
|
|
606
|
-
"send": {
|
|
607
|
-
"description": "Send test email to this address",
|
|
608
|
-
"name": "send",
|
|
609
|
-
"hasDynamicHelp": false,
|
|
610
|
-
"multiple": false,
|
|
611
|
-
"type": "option"
|
|
612
|
-
},
|
|
613
|
-
"text": {
|
|
614
|
-
"description": "Output plain text version (for AI agents)",
|
|
615
|
-
"name": "text",
|
|
616
|
-
"allowNo": false,
|
|
617
|
-
"type": "boolean"
|
|
618
|
-
}
|
|
619
|
-
},
|
|
620
|
-
"hasDynamicHelp": false,
|
|
621
|
-
"hiddenAliases": [],
|
|
622
|
-
"id": "preview",
|
|
623
|
-
"pluginAlias": "@mailmodo/cli",
|
|
624
|
-
"pluginName": "@mailmodo/cli",
|
|
625
|
-
"pluginType": "core",
|
|
626
|
-
"strict": true,
|
|
627
|
-
"enableJsonFlag": false,
|
|
628
|
-
"isESM": true,
|
|
629
|
-
"relativePath": [
|
|
630
|
-
"dist",
|
|
631
|
-
"commands",
|
|
632
|
-
"preview",
|
|
633
|
-
"index.js"
|
|
634
|
-
]
|
|
635
635
|
}
|
|
636
636
|
},
|
|
637
|
-
"version": "0.0.
|
|
637
|
+
"version": "0.0.25"
|
|
638
638
|
}
|