@mailmodo/cli 0.0.39-beta.pr41.64 → 0.0.40-beta.pr42.65

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 examples: string[];
4
+ static get 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,10 +8,19 @@ 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 examples = [
12
- '<%= config.bin %> login',
13
- 'MAILMODO_API_KEY=mm_live_xxx <%= config.bin %> login',
14
- ];
11
+ static get examples() {
12
+ if (process.platform === 'win32') {
13
+ return [
14
+ '<%= config.bin %> login',
15
+ '$env:MAILMODO_API_KEY="mm_live_xxx"; <%= config.bin %> login # PowerShell',
16
+ 'set MAILMODO_API_KEY=mm_live_xxx && <%= config.bin %> login # CMD',
17
+ ];
18
+ }
19
+ return [
20
+ '<%= config.bin %> login',
21
+ 'MAILMODO_API_KEY=mm_live_xxx <%= config.bin %> login',
22
+ ];
23
+ }
15
24
  static flags = {
16
25
  ...BaseCommand.baseFlags,
17
26
  };
@@ -284,10 +284,6 @@
284
284
  "aliases": [],
285
285
  "args": {},
286
286
  "description": "Authenticate with Mailmodo using your API key",
287
- "examples": [
288
- "<%= config.bin %> login",
289
- "MAILMODO_API_KEY=mm_live_xxx <%= config.bin %> login"
290
- ],
291
287
  "flags": {
292
288
  "json": {
293
289
  "description": "Output as JSON",
@@ -365,12 +361,13 @@
365
361
  "index.js"
366
362
  ]
367
363
  },
368
- "logout": {
364
+ "emails": {
369
365
  "aliases": [],
370
366
  "args": {},
371
- "description": "Sign out by removing saved credentials from this machine",
367
+ "description": "List and view configured email sequences",
372
368
  "examples": [
373
- "<%= config.bin %> logout"
369
+ "<%= config.bin %> emails",
370
+ "<%= config.bin %> emails --json"
374
371
  ],
375
372
  "flags": {
376
373
  "json": {
@@ -389,7 +386,7 @@
389
386
  },
390
387
  "hasDynamicHelp": false,
391
388
  "hiddenAliases": [],
392
- "id": "logout",
389
+ "id": "emails",
393
390
  "pluginAlias": "@mailmodo/cli",
394
391
  "pluginName": "@mailmodo/cli",
395
392
  "pluginType": "core",
@@ -399,7 +396,7 @@
399
396
  "relativePath": [
400
397
  "dist",
401
398
  "commands",
402
- "logout",
399
+ "emails",
403
400
  "index.js"
404
401
  ]
405
402
  },
@@ -617,13 +614,12 @@
617
614
  "index.js"
618
615
  ]
619
616
  },
620
- "emails": {
617
+ "logout": {
621
618
  "aliases": [],
622
619
  "args": {},
623
- "description": "List and view configured email sequences",
620
+ "description": "Sign out by removing saved credentials from this machine",
624
621
  "examples": [
625
- "<%= config.bin %> emails",
626
- "<%= config.bin %> emails --json"
622
+ "<%= config.bin %> logout"
627
623
  ],
628
624
  "flags": {
629
625
  "json": {
@@ -642,7 +638,7 @@
642
638
  },
643
639
  "hasDynamicHelp": false,
644
640
  "hiddenAliases": [],
645
- "id": "emails",
641
+ "id": "logout",
646
642
  "pluginAlias": "@mailmodo/cli",
647
643
  "pluginName": "@mailmodo/cli",
648
644
  "pluginType": "core",
@@ -652,10 +648,10 @@
652
648
  "relativePath": [
653
649
  "dist",
654
650
  "commands",
655
- "emails",
651
+ "logout",
656
652
  "index.js"
657
653
  ]
658
654
  }
659
655
  },
660
- "version": "0.0.39-beta.pr41.64"
656
+ "version": "0.0.40-beta.pr42.65"
661
657
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mailmodo/cli",
3
3
  "description": "Email lifecycle automation for the AI-native builder generation.",
4
- "version": "0.0.39-beta.pr41.64",
4
+ "version": "0.0.40-beta.pr42.65",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"