@mailmodo/cli 0.0.58-beta.pr60.110 → 0.0.58
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/lib/config.js +2 -4
- package/oclif.manifest.json +164 -164
- package/package.json +1 -1
package/dist/lib/config.js
CHANGED
|
@@ -39,11 +39,9 @@ export async function loadConfig() {
|
|
|
39
39
|
export async function saveConfig(config) {
|
|
40
40
|
const dir = configDir();
|
|
41
41
|
if (!existsSync(dir)) {
|
|
42
|
-
await mkdir(dir, { recursive: true
|
|
42
|
+
await mkdir(dir, { recursive: true });
|
|
43
43
|
}
|
|
44
|
-
await writeFile(configFile(), JSON.stringify(config, null, 2)
|
|
45
|
-
mode: 0o600,
|
|
46
|
-
});
|
|
44
|
+
await writeFile(configFile(), JSON.stringify(config, null, 2));
|
|
47
45
|
}
|
|
48
46
|
/**
|
|
49
47
|
* Deletes the saved CLI config file (~/.mailmodo/config), removing the stored API key.
|
package/oclif.manifest.json
CHANGED
|
@@ -341,13 +341,13 @@
|
|
|
341
341
|
"index.js"
|
|
342
342
|
]
|
|
343
343
|
},
|
|
344
|
-
"
|
|
344
|
+
"emails": {
|
|
345
345
|
"aliases": [],
|
|
346
346
|
"args": {},
|
|
347
|
-
"description": "
|
|
347
|
+
"description": "List and view configured email sequences",
|
|
348
348
|
"examples": [
|
|
349
|
-
"<%= config.bin %>
|
|
350
|
-
"<%= config.bin %>
|
|
349
|
+
"<%= config.bin %> emails",
|
|
350
|
+
"<%= config.bin %> emails --json"
|
|
351
351
|
],
|
|
352
352
|
"flags": {
|
|
353
353
|
"json": {
|
|
@@ -362,18 +362,11 @@
|
|
|
362
362
|
"name": "yes",
|
|
363
363
|
"allowNo": false,
|
|
364
364
|
"type": "boolean"
|
|
365
|
-
},
|
|
366
|
-
"url": {
|
|
367
|
-
"description": "Product URL to analyze",
|
|
368
|
-
"name": "url",
|
|
369
|
-
"hasDynamicHelp": false,
|
|
370
|
-
"multiple": false,
|
|
371
|
-
"type": "option"
|
|
372
365
|
}
|
|
373
366
|
},
|
|
374
367
|
"hasDynamicHelp": false,
|
|
375
368
|
"hiddenAliases": [],
|
|
376
|
-
"id": "
|
|
369
|
+
"id": "emails",
|
|
377
370
|
"pluginAlias": "@mailmodo/cli",
|
|
378
371
|
"pluginName": "@mailmodo/cli",
|
|
379
372
|
"pluginType": "core",
|
|
@@ -383,17 +376,17 @@
|
|
|
383
376
|
"relativePath": [
|
|
384
377
|
"dist",
|
|
385
378
|
"commands",
|
|
386
|
-
"
|
|
379
|
+
"emails",
|
|
387
380
|
"index.js"
|
|
388
381
|
]
|
|
389
382
|
},
|
|
390
|
-
"
|
|
383
|
+
"init": {
|
|
391
384
|
"aliases": [],
|
|
392
385
|
"args": {},
|
|
393
|
-
"description": "
|
|
386
|
+
"description": "Analyze your product and generate email sequences",
|
|
394
387
|
"examples": [
|
|
395
|
-
"<%= config.bin %>
|
|
396
|
-
"
|
|
388
|
+
"<%= config.bin %> init",
|
|
389
|
+
"<%= config.bin %> init --url https://myapp.com --yes"
|
|
397
390
|
],
|
|
398
391
|
"flags": {
|
|
399
392
|
"json": {
|
|
@@ -408,11 +401,18 @@
|
|
|
408
401
|
"name": "yes",
|
|
409
402
|
"allowNo": false,
|
|
410
403
|
"type": "boolean"
|
|
404
|
+
},
|
|
405
|
+
"url": {
|
|
406
|
+
"description": "Product URL to analyze",
|
|
407
|
+
"name": "url",
|
|
408
|
+
"hasDynamicHelp": false,
|
|
409
|
+
"multiple": false,
|
|
410
|
+
"type": "option"
|
|
411
411
|
}
|
|
412
412
|
},
|
|
413
413
|
"hasDynamicHelp": false,
|
|
414
414
|
"hiddenAliases": [],
|
|
415
|
-
"id": "
|
|
415
|
+
"id": "init",
|
|
416
416
|
"pluginAlias": "@mailmodo/cli",
|
|
417
417
|
"pluginName": "@mailmodo/cli",
|
|
418
418
|
"pluginType": "core",
|
|
@@ -422,16 +422,17 @@
|
|
|
422
422
|
"relativePath": [
|
|
423
423
|
"dist",
|
|
424
424
|
"commands",
|
|
425
|
-
"
|
|
425
|
+
"init",
|
|
426
426
|
"index.js"
|
|
427
427
|
]
|
|
428
428
|
},
|
|
429
|
-
"
|
|
429
|
+
"login": {
|
|
430
430
|
"aliases": [],
|
|
431
431
|
"args": {},
|
|
432
|
-
"description": "
|
|
432
|
+
"description": "Authenticate with Mailmodo using your API key",
|
|
433
433
|
"examples": [
|
|
434
|
-
"<%= config.bin %>
|
|
434
|
+
"<%= config.bin %> login",
|
|
435
|
+
"MAILMODO_API_KEY=YOUR_API_KEY <%= config.bin %> login"
|
|
435
436
|
],
|
|
436
437
|
"flags": {
|
|
437
438
|
"json": {
|
|
@@ -450,7 +451,7 @@
|
|
|
450
451
|
},
|
|
451
452
|
"hasDynamicHelp": false,
|
|
452
453
|
"hiddenAliases": [],
|
|
453
|
-
"id": "
|
|
454
|
+
"id": "login",
|
|
454
455
|
"pluginAlias": "@mailmodo/cli",
|
|
455
456
|
"pluginName": "@mailmodo/cli",
|
|
456
457
|
"pluginType": "core",
|
|
@@ -460,17 +461,16 @@
|
|
|
460
461
|
"relativePath": [
|
|
461
462
|
"dist",
|
|
462
463
|
"commands",
|
|
463
|
-
"
|
|
464
|
+
"login",
|
|
464
465
|
"index.js"
|
|
465
466
|
]
|
|
466
467
|
},
|
|
467
|
-
"
|
|
468
|
+
"logout": {
|
|
468
469
|
"aliases": [],
|
|
469
470
|
"args": {},
|
|
470
|
-
"description": "
|
|
471
|
+
"description": "Sign out by removing saved credentials from this machine",
|
|
471
472
|
"examples": [
|
|
472
|
-
"<%= config.bin %>
|
|
473
|
-
"<%= config.bin %> emails --json"
|
|
473
|
+
"<%= config.bin %> logout"
|
|
474
474
|
],
|
|
475
475
|
"flags": {
|
|
476
476
|
"json": {
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
},
|
|
490
490
|
"hasDynamicHelp": false,
|
|
491
491
|
"hiddenAliases": [],
|
|
492
|
-
"id": "
|
|
492
|
+
"id": "logout",
|
|
493
493
|
"pluginAlias": "@mailmodo/cli",
|
|
494
494
|
"pluginName": "@mailmodo/cli",
|
|
495
495
|
"pluginType": "core",
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
"relativePath": [
|
|
500
500
|
"dist",
|
|
501
501
|
"commands",
|
|
502
|
-
"
|
|
502
|
+
"logout",
|
|
503
503
|
"index.js"
|
|
504
504
|
]
|
|
505
505
|
},
|
|
@@ -631,6 +631,139 @@
|
|
|
631
631
|
"index.js"
|
|
632
632
|
]
|
|
633
633
|
},
|
|
634
|
+
"sdk": {
|
|
635
|
+
"aliases": [],
|
|
636
|
+
"args": {},
|
|
637
|
+
"description": "Show the SDK track() / identify() reference for deployed sequences",
|
|
638
|
+
"examples": [
|
|
639
|
+
"<%= config.bin %> sdk",
|
|
640
|
+
"<%= config.bin %> sdk --sequence-id a1b2c3d4",
|
|
641
|
+
"<%= config.bin %> sdk --json"
|
|
642
|
+
],
|
|
643
|
+
"flags": {
|
|
644
|
+
"json": {
|
|
645
|
+
"description": "Output as JSON",
|
|
646
|
+
"name": "json",
|
|
647
|
+
"allowNo": false,
|
|
648
|
+
"type": "boolean"
|
|
649
|
+
},
|
|
650
|
+
"yes": {
|
|
651
|
+
"char": "y",
|
|
652
|
+
"description": "Skip confirmation prompts",
|
|
653
|
+
"name": "yes",
|
|
654
|
+
"allowNo": false,
|
|
655
|
+
"type": "boolean"
|
|
656
|
+
},
|
|
657
|
+
"sequence-id": {
|
|
658
|
+
"description": "Limit output to a single active sequence by ID (default: all active sequences)",
|
|
659
|
+
"name": "sequence-id",
|
|
660
|
+
"hasDynamicHelp": false,
|
|
661
|
+
"multiple": false,
|
|
662
|
+
"type": "option"
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
"hasDynamicHelp": false,
|
|
666
|
+
"hiddenAliases": [],
|
|
667
|
+
"id": "sdk",
|
|
668
|
+
"pluginAlias": "@mailmodo/cli",
|
|
669
|
+
"pluginName": "@mailmodo/cli",
|
|
670
|
+
"pluginType": "core",
|
|
671
|
+
"strict": true,
|
|
672
|
+
"enableJsonFlag": false,
|
|
673
|
+
"isESM": true,
|
|
674
|
+
"relativePath": [
|
|
675
|
+
"dist",
|
|
676
|
+
"commands",
|
|
677
|
+
"sdk",
|
|
678
|
+
"index.js"
|
|
679
|
+
]
|
|
680
|
+
},
|
|
681
|
+
"settings": {
|
|
682
|
+
"aliases": [],
|
|
683
|
+
"args": {},
|
|
684
|
+
"description": "View and update project settings",
|
|
685
|
+
"examples": [
|
|
686
|
+
"<%= config.bin %> settings",
|
|
687
|
+
"<%= config.bin %> settings --set brand_color=#0F3460",
|
|
688
|
+
"<%= config.bin %> settings --json"
|
|
689
|
+
],
|
|
690
|
+
"flags": {
|
|
691
|
+
"json": {
|
|
692
|
+
"description": "Output as JSON",
|
|
693
|
+
"name": "json",
|
|
694
|
+
"allowNo": false,
|
|
695
|
+
"type": "boolean"
|
|
696
|
+
},
|
|
697
|
+
"yes": {
|
|
698
|
+
"char": "y",
|
|
699
|
+
"description": "Skip confirmation prompts",
|
|
700
|
+
"name": "yes",
|
|
701
|
+
"allowNo": false,
|
|
702
|
+
"type": "boolean"
|
|
703
|
+
},
|
|
704
|
+
"set": {
|
|
705
|
+
"description": "Set a setting (format: key=value)",
|
|
706
|
+
"name": "set",
|
|
707
|
+
"hasDynamicHelp": false,
|
|
708
|
+
"multiple": false,
|
|
709
|
+
"type": "option"
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
"hasDynamicHelp": false,
|
|
713
|
+
"hiddenAliases": [],
|
|
714
|
+
"id": "settings",
|
|
715
|
+
"pluginAlias": "@mailmodo/cli",
|
|
716
|
+
"pluginName": "@mailmodo/cli",
|
|
717
|
+
"pluginType": "core",
|
|
718
|
+
"strict": true,
|
|
719
|
+
"enableJsonFlag": false,
|
|
720
|
+
"isESM": true,
|
|
721
|
+
"relativePath": [
|
|
722
|
+
"dist",
|
|
723
|
+
"commands",
|
|
724
|
+
"settings",
|
|
725
|
+
"index.js"
|
|
726
|
+
]
|
|
727
|
+
},
|
|
728
|
+
"status": {
|
|
729
|
+
"aliases": [],
|
|
730
|
+
"args": {},
|
|
731
|
+
"description": "View email performance metrics and quota usage",
|
|
732
|
+
"examples": [
|
|
733
|
+
"<%= config.bin %> status",
|
|
734
|
+
"<%= config.bin %> status --json"
|
|
735
|
+
],
|
|
736
|
+
"flags": {
|
|
737
|
+
"json": {
|
|
738
|
+
"description": "Output as JSON",
|
|
739
|
+
"name": "json",
|
|
740
|
+
"allowNo": false,
|
|
741
|
+
"type": "boolean"
|
|
742
|
+
},
|
|
743
|
+
"yes": {
|
|
744
|
+
"char": "y",
|
|
745
|
+
"description": "Skip confirmation prompts",
|
|
746
|
+
"name": "yes",
|
|
747
|
+
"allowNo": false,
|
|
748
|
+
"type": "boolean"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
"hasDynamicHelp": false,
|
|
752
|
+
"hiddenAliases": [],
|
|
753
|
+
"id": "status",
|
|
754
|
+
"pluginAlias": "@mailmodo/cli",
|
|
755
|
+
"pluginName": "@mailmodo/cli",
|
|
756
|
+
"pluginType": "core",
|
|
757
|
+
"strict": true,
|
|
758
|
+
"enableJsonFlag": false,
|
|
759
|
+
"isESM": true,
|
|
760
|
+
"relativePath": [
|
|
761
|
+
"dist",
|
|
762
|
+
"commands",
|
|
763
|
+
"status",
|
|
764
|
+
"index.js"
|
|
765
|
+
]
|
|
766
|
+
},
|
|
634
767
|
"report": {
|
|
635
768
|
"aliases": [],
|
|
636
769
|
"args": {},
|
|
@@ -797,140 +930,7 @@
|
|
|
797
930
|
"report",
|
|
798
931
|
"index.js"
|
|
799
932
|
]
|
|
800
|
-
},
|
|
801
|
-
"sdk": {
|
|
802
|
-
"aliases": [],
|
|
803
|
-
"args": {},
|
|
804
|
-
"description": "Show the SDK track() / identify() reference for deployed sequences",
|
|
805
|
-
"examples": [
|
|
806
|
-
"<%= config.bin %> sdk",
|
|
807
|
-
"<%= config.bin %> sdk --sequence-id a1b2c3d4",
|
|
808
|
-
"<%= config.bin %> sdk --json"
|
|
809
|
-
],
|
|
810
|
-
"flags": {
|
|
811
|
-
"json": {
|
|
812
|
-
"description": "Output as JSON",
|
|
813
|
-
"name": "json",
|
|
814
|
-
"allowNo": false,
|
|
815
|
-
"type": "boolean"
|
|
816
|
-
},
|
|
817
|
-
"yes": {
|
|
818
|
-
"char": "y",
|
|
819
|
-
"description": "Skip confirmation prompts",
|
|
820
|
-
"name": "yes",
|
|
821
|
-
"allowNo": false,
|
|
822
|
-
"type": "boolean"
|
|
823
|
-
},
|
|
824
|
-
"sequence-id": {
|
|
825
|
-
"description": "Limit output to a single active sequence by ID (default: all active sequences)",
|
|
826
|
-
"name": "sequence-id",
|
|
827
|
-
"hasDynamicHelp": false,
|
|
828
|
-
"multiple": false,
|
|
829
|
-
"type": "option"
|
|
830
|
-
}
|
|
831
|
-
},
|
|
832
|
-
"hasDynamicHelp": false,
|
|
833
|
-
"hiddenAliases": [],
|
|
834
|
-
"id": "sdk",
|
|
835
|
-
"pluginAlias": "@mailmodo/cli",
|
|
836
|
-
"pluginName": "@mailmodo/cli",
|
|
837
|
-
"pluginType": "core",
|
|
838
|
-
"strict": true,
|
|
839
|
-
"enableJsonFlag": false,
|
|
840
|
-
"isESM": true,
|
|
841
|
-
"relativePath": [
|
|
842
|
-
"dist",
|
|
843
|
-
"commands",
|
|
844
|
-
"sdk",
|
|
845
|
-
"index.js"
|
|
846
|
-
]
|
|
847
|
-
},
|
|
848
|
-
"settings": {
|
|
849
|
-
"aliases": [],
|
|
850
|
-
"args": {},
|
|
851
|
-
"description": "View and update project settings",
|
|
852
|
-
"examples": [
|
|
853
|
-
"<%= config.bin %> settings",
|
|
854
|
-
"<%= config.bin %> settings --set brand_color=#0F3460",
|
|
855
|
-
"<%= config.bin %> settings --json"
|
|
856
|
-
],
|
|
857
|
-
"flags": {
|
|
858
|
-
"json": {
|
|
859
|
-
"description": "Output as JSON",
|
|
860
|
-
"name": "json",
|
|
861
|
-
"allowNo": false,
|
|
862
|
-
"type": "boolean"
|
|
863
|
-
},
|
|
864
|
-
"yes": {
|
|
865
|
-
"char": "y",
|
|
866
|
-
"description": "Skip confirmation prompts",
|
|
867
|
-
"name": "yes",
|
|
868
|
-
"allowNo": false,
|
|
869
|
-
"type": "boolean"
|
|
870
|
-
},
|
|
871
|
-
"set": {
|
|
872
|
-
"description": "Set a setting (format: key=value)",
|
|
873
|
-
"name": "set",
|
|
874
|
-
"hasDynamicHelp": false,
|
|
875
|
-
"multiple": false,
|
|
876
|
-
"type": "option"
|
|
877
|
-
}
|
|
878
|
-
},
|
|
879
|
-
"hasDynamicHelp": false,
|
|
880
|
-
"hiddenAliases": [],
|
|
881
|
-
"id": "settings",
|
|
882
|
-
"pluginAlias": "@mailmodo/cli",
|
|
883
|
-
"pluginName": "@mailmodo/cli",
|
|
884
|
-
"pluginType": "core",
|
|
885
|
-
"strict": true,
|
|
886
|
-
"enableJsonFlag": false,
|
|
887
|
-
"isESM": true,
|
|
888
|
-
"relativePath": [
|
|
889
|
-
"dist",
|
|
890
|
-
"commands",
|
|
891
|
-
"settings",
|
|
892
|
-
"index.js"
|
|
893
|
-
]
|
|
894
|
-
},
|
|
895
|
-
"status": {
|
|
896
|
-
"aliases": [],
|
|
897
|
-
"args": {},
|
|
898
|
-
"description": "View email performance metrics and quota usage",
|
|
899
|
-
"examples": [
|
|
900
|
-
"<%= config.bin %> status",
|
|
901
|
-
"<%= config.bin %> status --json"
|
|
902
|
-
],
|
|
903
|
-
"flags": {
|
|
904
|
-
"json": {
|
|
905
|
-
"description": "Output as JSON",
|
|
906
|
-
"name": "json",
|
|
907
|
-
"allowNo": false,
|
|
908
|
-
"type": "boolean"
|
|
909
|
-
},
|
|
910
|
-
"yes": {
|
|
911
|
-
"char": "y",
|
|
912
|
-
"description": "Skip confirmation prompts",
|
|
913
|
-
"name": "yes",
|
|
914
|
-
"allowNo": false,
|
|
915
|
-
"type": "boolean"
|
|
916
|
-
}
|
|
917
|
-
},
|
|
918
|
-
"hasDynamicHelp": false,
|
|
919
|
-
"hiddenAliases": [],
|
|
920
|
-
"id": "status",
|
|
921
|
-
"pluginAlias": "@mailmodo/cli",
|
|
922
|
-
"pluginName": "@mailmodo/cli",
|
|
923
|
-
"pluginType": "core",
|
|
924
|
-
"strict": true,
|
|
925
|
-
"enableJsonFlag": false,
|
|
926
|
-
"isESM": true,
|
|
927
|
-
"relativePath": [
|
|
928
|
-
"dist",
|
|
929
|
-
"commands",
|
|
930
|
-
"status",
|
|
931
|
-
"index.js"
|
|
932
|
-
]
|
|
933
933
|
}
|
|
934
934
|
},
|
|
935
|
-
"version": "0.0.58
|
|
935
|
+
"version": "0.0.58"
|
|
936
936
|
}
|
package/package.json
CHANGED