@mailmodo/cli 0.0.40-beta.pr42.65 → 0.0.40-beta.pr42.67
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseCommand } from '../../lib/base-command.js';
|
|
2
2
|
export default class Login extends BaseCommand {
|
|
3
3
|
static description: string;
|
|
4
|
-
static
|
|
4
|
+
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
6
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
7
|
yes: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
@@ -8,19 +8,16 @@ import { API_ENDPOINTS, LOGIN_URL } from '../../lib/constants.js';
|
|
|
8
8
|
import { INFO } from '../../lib/messages.js';
|
|
9
9
|
export default class Login extends BaseCommand {
|
|
10
10
|
static description = 'Authenticate with Mailmodo using your API key';
|
|
11
|
-
static
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
return [
|
|
11
|
+
static examples = process.platform === 'win32'
|
|
12
|
+
? [
|
|
13
|
+
'<%= config.bin %> login',
|
|
14
|
+
'$env:MAILMODO_API_KEY="YOUR_API_KEY"; <%= config.bin %> login # PowerShell',
|
|
15
|
+
'set MAILMODO_API_KEY=YOUR_API_KEY && <%= config.bin %> login # CMD',
|
|
16
|
+
]
|
|
17
|
+
: [
|
|
20
18
|
'<%= config.bin %> login',
|
|
21
|
-
'MAILMODO_API_KEY=
|
|
19
|
+
'MAILMODO_API_KEY=YOUR_API_KEY <%= config.bin %> login',
|
|
22
20
|
];
|
|
23
|
-
}
|
|
24
21
|
static flags = {
|
|
25
22
|
...BaseCommand.baseFlags,
|
|
26
23
|
};
|
package/oclif.manifest.json
CHANGED
|
@@ -280,10 +280,14 @@
|
|
|
280
280
|
"index.js"
|
|
281
281
|
]
|
|
282
282
|
},
|
|
283
|
-
"
|
|
283
|
+
"emails": {
|
|
284
284
|
"aliases": [],
|
|
285
285
|
"args": {},
|
|
286
|
-
"description": "
|
|
286
|
+
"description": "List and view configured email sequences",
|
|
287
|
+
"examples": [
|
|
288
|
+
"<%= config.bin %> emails",
|
|
289
|
+
"<%= config.bin %> emails --json"
|
|
290
|
+
],
|
|
287
291
|
"flags": {
|
|
288
292
|
"json": {
|
|
289
293
|
"description": "Output as JSON",
|
|
@@ -301,7 +305,7 @@
|
|
|
301
305
|
},
|
|
302
306
|
"hasDynamicHelp": false,
|
|
303
307
|
"hiddenAliases": [],
|
|
304
|
-
"id": "
|
|
308
|
+
"id": "emails",
|
|
305
309
|
"pluginAlias": "@mailmodo/cli",
|
|
306
310
|
"pluginName": "@mailmodo/cli",
|
|
307
311
|
"pluginType": "core",
|
|
@@ -311,7 +315,7 @@
|
|
|
311
315
|
"relativePath": [
|
|
312
316
|
"dist",
|
|
313
317
|
"commands",
|
|
314
|
-
"
|
|
318
|
+
"emails",
|
|
315
319
|
"index.js"
|
|
316
320
|
]
|
|
317
321
|
},
|
|
@@ -361,13 +365,12 @@
|
|
|
361
365
|
"index.js"
|
|
362
366
|
]
|
|
363
367
|
},
|
|
364
|
-
"
|
|
368
|
+
"logout": {
|
|
365
369
|
"aliases": [],
|
|
366
370
|
"args": {},
|
|
367
|
-
"description": "
|
|
371
|
+
"description": "Sign out by removing saved credentials from this machine",
|
|
368
372
|
"examples": [
|
|
369
|
-
"<%= config.bin %>
|
|
370
|
-
"<%= config.bin %> emails --json"
|
|
373
|
+
"<%= config.bin %> logout"
|
|
371
374
|
],
|
|
372
375
|
"flags": {
|
|
373
376
|
"json": {
|
|
@@ -386,7 +389,7 @@
|
|
|
386
389
|
},
|
|
387
390
|
"hasDynamicHelp": false,
|
|
388
391
|
"hiddenAliases": [],
|
|
389
|
-
"id": "
|
|
392
|
+
"id": "logout",
|
|
390
393
|
"pluginAlias": "@mailmodo/cli",
|
|
391
394
|
"pluginName": "@mailmodo/cli",
|
|
392
395
|
"pluginType": "core",
|
|
@@ -396,7 +399,46 @@
|
|
|
396
399
|
"relativePath": [
|
|
397
400
|
"dist",
|
|
398
401
|
"commands",
|
|
399
|
-
"
|
|
402
|
+
"logout",
|
|
403
|
+
"index.js"
|
|
404
|
+
]
|
|
405
|
+
},
|
|
406
|
+
"login": {
|
|
407
|
+
"aliases": [],
|
|
408
|
+
"args": {},
|
|
409
|
+
"description": "Authenticate with Mailmodo using your API key",
|
|
410
|
+
"examples": [
|
|
411
|
+
"<%= config.bin %> login",
|
|
412
|
+
"MAILMODO_API_KEY=YOUR_API_KEY <%= config.bin %> login"
|
|
413
|
+
],
|
|
414
|
+
"flags": {
|
|
415
|
+
"json": {
|
|
416
|
+
"description": "Output as JSON",
|
|
417
|
+
"name": "json",
|
|
418
|
+
"allowNo": false,
|
|
419
|
+
"type": "boolean"
|
|
420
|
+
},
|
|
421
|
+
"yes": {
|
|
422
|
+
"char": "y",
|
|
423
|
+
"description": "Skip confirmation prompts",
|
|
424
|
+
"name": "yes",
|
|
425
|
+
"allowNo": false,
|
|
426
|
+
"type": "boolean"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"hasDynamicHelp": false,
|
|
430
|
+
"hiddenAliases": [],
|
|
431
|
+
"id": "login",
|
|
432
|
+
"pluginAlias": "@mailmodo/cli",
|
|
433
|
+
"pluginName": "@mailmodo/cli",
|
|
434
|
+
"pluginType": "core",
|
|
435
|
+
"strict": true,
|
|
436
|
+
"enableJsonFlag": false,
|
|
437
|
+
"isESM": true,
|
|
438
|
+
"relativePath": [
|
|
439
|
+
"dist",
|
|
440
|
+
"commands",
|
|
441
|
+
"login",
|
|
400
442
|
"index.js"
|
|
401
443
|
]
|
|
402
444
|
},
|
|
@@ -613,45 +655,7 @@
|
|
|
613
655
|
"status",
|
|
614
656
|
"index.js"
|
|
615
657
|
]
|
|
616
|
-
},
|
|
617
|
-
"logout": {
|
|
618
|
-
"aliases": [],
|
|
619
|
-
"args": {},
|
|
620
|
-
"description": "Sign out by removing saved credentials from this machine",
|
|
621
|
-
"examples": [
|
|
622
|
-
"<%= config.bin %> logout"
|
|
623
|
-
],
|
|
624
|
-
"flags": {
|
|
625
|
-
"json": {
|
|
626
|
-
"description": "Output as JSON",
|
|
627
|
-
"name": "json",
|
|
628
|
-
"allowNo": false,
|
|
629
|
-
"type": "boolean"
|
|
630
|
-
},
|
|
631
|
-
"yes": {
|
|
632
|
-
"char": "y",
|
|
633
|
-
"description": "Skip confirmation prompts",
|
|
634
|
-
"name": "yes",
|
|
635
|
-
"allowNo": false,
|
|
636
|
-
"type": "boolean"
|
|
637
|
-
}
|
|
638
|
-
},
|
|
639
|
-
"hasDynamicHelp": false,
|
|
640
|
-
"hiddenAliases": [],
|
|
641
|
-
"id": "logout",
|
|
642
|
-
"pluginAlias": "@mailmodo/cli",
|
|
643
|
-
"pluginName": "@mailmodo/cli",
|
|
644
|
-
"pluginType": "core",
|
|
645
|
-
"strict": true,
|
|
646
|
-
"enableJsonFlag": false,
|
|
647
|
-
"isESM": true,
|
|
648
|
-
"relativePath": [
|
|
649
|
-
"dist",
|
|
650
|
-
"commands",
|
|
651
|
-
"logout",
|
|
652
|
-
"index.js"
|
|
653
|
-
]
|
|
654
658
|
}
|
|
655
659
|
},
|
|
656
|
-
"version": "0.0.40-beta.pr42.
|
|
660
|
+
"version": "0.0.40-beta.pr42.67"
|
|
657
661
|
}
|
package/package.json
CHANGED