@mailmodo/cli 0.0.40-beta.pr42.66 → 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 get examples(): string[];
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 get examples() {
12
- if (process.platform === 'win32') {
13
- return [
14
- '<%= config.bin %> login',
15
- '$env:MAILMODO_API_KEY="YOUR_API_KEY"; <%= config.bin %> login # PowerShell',
16
- 'set MAILMODO_API_KEY=YOUR_API_KEY && <%= config.bin %> login # CMD',
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
19
  'MAILMODO_API_KEY=YOUR_API_KEY <%= config.bin %> login',
22
20
  ];
23
- }
24
21
  static flags = {
25
22
  ...BaseCommand.baseFlags,
26
23
  };
@@ -280,13 +280,13 @@
280
280
  "index.js"
281
281
  ]
282
282
  },
283
- "init": {
283
+ "emails": {
284
284
  "aliases": [],
285
285
  "args": {},
286
- "description": "Analyze your product and generate email sequences",
286
+ "description": "List and view configured email sequences",
287
287
  "examples": [
288
- "<%= config.bin %> init",
289
- "<%= config.bin %> init --url https://myapp.com --yes"
288
+ "<%= config.bin %> emails",
289
+ "<%= config.bin %> emails --json"
290
290
  ],
291
291
  "flags": {
292
292
  "json": {
@@ -301,18 +301,11 @@
301
301
  "name": "yes",
302
302
  "allowNo": false,
303
303
  "type": "boolean"
304
- },
305
- "url": {
306
- "description": "Product URL to analyze",
307
- "name": "url",
308
- "hasDynamicHelp": false,
309
- "multiple": false,
310
- "type": "option"
311
304
  }
312
305
  },
313
306
  "hasDynamicHelp": false,
314
307
  "hiddenAliases": [],
315
- "id": "init",
308
+ "id": "emails",
316
309
  "pluginAlias": "@mailmodo/cli",
317
310
  "pluginName": "@mailmodo/cli",
318
311
  "pluginType": "core",
@@ -322,17 +315,17 @@
322
315
  "relativePath": [
323
316
  "dist",
324
317
  "commands",
325
- "init",
318
+ "emails",
326
319
  "index.js"
327
320
  ]
328
321
  },
329
- "emails": {
322
+ "init": {
330
323
  "aliases": [],
331
324
  "args": {},
332
- "description": "List and view configured email sequences",
325
+ "description": "Analyze your product and generate email sequences",
333
326
  "examples": [
334
- "<%= config.bin %> emails",
335
- "<%= config.bin %> emails --json"
327
+ "<%= config.bin %> init",
328
+ "<%= config.bin %> init --url https://myapp.com --yes"
336
329
  ],
337
330
  "flags": {
338
331
  "json": {
@@ -347,11 +340,18 @@
347
340
  "name": "yes",
348
341
  "allowNo": false,
349
342
  "type": "boolean"
343
+ },
344
+ "url": {
345
+ "description": "Product URL to analyze",
346
+ "name": "url",
347
+ "hasDynamicHelp": false,
348
+ "multiple": false,
349
+ "type": "option"
350
350
  }
351
351
  },
352
352
  "hasDynamicHelp": false,
353
353
  "hiddenAliases": [],
354
- "id": "emails",
354
+ "id": "init",
355
355
  "pluginAlias": "@mailmodo/cli",
356
356
  "pluginName": "@mailmodo/cli",
357
357
  "pluginType": "core",
@@ -361,14 +361,17 @@
361
361
  "relativePath": [
362
362
  "dist",
363
363
  "commands",
364
- "emails",
364
+ "init",
365
365
  "index.js"
366
366
  ]
367
367
  },
368
- "login": {
368
+ "logout": {
369
369
  "aliases": [],
370
370
  "args": {},
371
- "description": "Authenticate with Mailmodo using your API key",
371
+ "description": "Sign out by removing saved credentials from this machine",
372
+ "examples": [
373
+ "<%= config.bin %> logout"
374
+ ],
372
375
  "flags": {
373
376
  "json": {
374
377
  "description": "Output as JSON",
@@ -386,7 +389,7 @@
386
389
  },
387
390
  "hasDynamicHelp": false,
388
391
  "hiddenAliases": [],
389
- "id": "login",
392
+ "id": "logout",
390
393
  "pluginAlias": "@mailmodo/cli",
391
394
  "pluginName": "@mailmodo/cli",
392
395
  "pluginType": "core",
@@ -396,16 +399,17 @@
396
399
  "relativePath": [
397
400
  "dist",
398
401
  "commands",
399
- "login",
402
+ "logout",
400
403
  "index.js"
401
404
  ]
402
405
  },
403
- "logout": {
406
+ "login": {
404
407
  "aliases": [],
405
408
  "args": {},
406
- "description": "Sign out by removing saved credentials from this machine",
409
+ "description": "Authenticate with Mailmodo using your API key",
407
410
  "examples": [
408
- "<%= config.bin %> logout"
411
+ "<%= config.bin %> login",
412
+ "MAILMODO_API_KEY=YOUR_API_KEY <%= config.bin %> login"
409
413
  ],
410
414
  "flags": {
411
415
  "json": {
@@ -424,7 +428,7 @@
424
428
  },
425
429
  "hasDynamicHelp": false,
426
430
  "hiddenAliases": [],
427
- "id": "logout",
431
+ "id": "login",
428
432
  "pluginAlias": "@mailmodo/cli",
429
433
  "pluginName": "@mailmodo/cli",
430
434
  "pluginType": "core",
@@ -434,7 +438,7 @@
434
438
  "relativePath": [
435
439
  "dist",
436
440
  "commands",
437
- "logout",
441
+ "login",
438
442
  "index.js"
439
443
  ]
440
444
  },
@@ -653,5 +657,5 @@
653
657
  ]
654
658
  }
655
659
  },
656
- "version": "0.0.40-beta.pr42.66"
660
+ "version": "0.0.40-beta.pr42.67"
657
661
  }
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.40-beta.pr42.66",
4
+ "version": "0.0.40-beta.pr42.67",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"