@mailmodo/cli 0.0.38 → 0.0.39-beta.pr41.64
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.
|
@@ -54,7 +54,7 @@ export default class Billing extends BaseCommand {
|
|
|
54
54
|
await this.setCap(flags.cap, autoChargeBlockCount, flags.json);
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
await this.showStatus(flags.json);
|
|
57
|
+
await this.showStatus(flags.json, flags.status);
|
|
58
58
|
}
|
|
59
59
|
async startCheckout(jsonOutput) {
|
|
60
60
|
const response = await this.withApiSpinner({ json: jsonOutput, text: ' Creating checkout session...' }, () => this.apiClient.post(API_ENDPOINTS.BILLING_CHECKOUT));
|
|
@@ -76,7 +76,7 @@ export default class Billing extends BaseCommand {
|
|
|
76
76
|
this.log(` ${INFO.BROWSER_OPEN_FAILED}\n`);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
async showStatus(jsonOutput) {
|
|
79
|
+
async showStatus(jsonOutput, statusOnly) {
|
|
80
80
|
const response = await this.withApiSpinner({ json: jsonOutput, text: ' Loading billing status...' }, () => this.apiClient.get(API_ENDPOINTS.BILLING_STATUS));
|
|
81
81
|
if (!response.ok) {
|
|
82
82
|
this.handleApiError(response);
|
|
@@ -104,7 +104,7 @@ export default class Billing extends BaseCommand {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
this.log('');
|
|
107
|
-
if (!data.hasPaymentMethod) {
|
|
107
|
+
if (!data.hasPaymentMethod && !statusOnly) {
|
|
108
108
|
await this.startCheckout(jsonOutput);
|
|
109
109
|
}
|
|
110
110
|
}
|
package/dist/lib/base-command.js
CHANGED
|
@@ -69,7 +69,7 @@ export class BaseCommand extends Command {
|
|
|
69
69
|
const result = await work().finally(() => spinner.stop());
|
|
70
70
|
const warning = result.addCardWarning;
|
|
71
71
|
if (typeof warning === 'string' && warning) {
|
|
72
|
-
this.warn(warning);
|
|
72
|
+
this.warn(chalk.hex('#FFA500')(warning));
|
|
73
73
|
}
|
|
74
74
|
return result;
|
|
75
75
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -280,52 +280,6 @@
|
|
|
280
280
|
"index.js"
|
|
281
281
|
]
|
|
282
282
|
},
|
|
283
|
-
"init": {
|
|
284
|
-
"aliases": [],
|
|
285
|
-
"args": {},
|
|
286
|
-
"description": "Analyze your product and generate email sequences",
|
|
287
|
-
"examples": [
|
|
288
|
-
"<%= config.bin %> init",
|
|
289
|
-
"<%= config.bin %> init --url https://myapp.com --yes"
|
|
290
|
-
],
|
|
291
|
-
"flags": {
|
|
292
|
-
"json": {
|
|
293
|
-
"description": "Output as JSON",
|
|
294
|
-
"name": "json",
|
|
295
|
-
"allowNo": false,
|
|
296
|
-
"type": "boolean"
|
|
297
|
-
},
|
|
298
|
-
"yes": {
|
|
299
|
-
"char": "y",
|
|
300
|
-
"description": "Skip confirmation prompts",
|
|
301
|
-
"name": "yes",
|
|
302
|
-
"allowNo": false,
|
|
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
|
-
}
|
|
312
|
-
},
|
|
313
|
-
"hasDynamicHelp": false,
|
|
314
|
-
"hiddenAliases": [],
|
|
315
|
-
"id": "init",
|
|
316
|
-
"pluginAlias": "@mailmodo/cli",
|
|
317
|
-
"pluginName": "@mailmodo/cli",
|
|
318
|
-
"pluginType": "core",
|
|
319
|
-
"strict": true,
|
|
320
|
-
"enableJsonFlag": false,
|
|
321
|
-
"isESM": true,
|
|
322
|
-
"relativePath": [
|
|
323
|
-
"dist",
|
|
324
|
-
"commands",
|
|
325
|
-
"init",
|
|
326
|
-
"index.js"
|
|
327
|
-
]
|
|
328
|
-
},
|
|
329
283
|
"login": {
|
|
330
284
|
"aliases": [],
|
|
331
285
|
"args": {},
|
|
@@ -365,13 +319,13 @@
|
|
|
365
319
|
"index.js"
|
|
366
320
|
]
|
|
367
321
|
},
|
|
368
|
-
"
|
|
322
|
+
"init": {
|
|
369
323
|
"aliases": [],
|
|
370
324
|
"args": {},
|
|
371
|
-
"description": "
|
|
325
|
+
"description": "Analyze your product and generate email sequences",
|
|
372
326
|
"examples": [
|
|
373
|
-
"<%= config.bin %>
|
|
374
|
-
"<%= config.bin %>
|
|
327
|
+
"<%= config.bin %> init",
|
|
328
|
+
"<%= config.bin %> init --url https://myapp.com --yes"
|
|
375
329
|
],
|
|
376
330
|
"flags": {
|
|
377
331
|
"json": {
|
|
@@ -386,11 +340,18 @@
|
|
|
386
340
|
"name": "yes",
|
|
387
341
|
"allowNo": false,
|
|
388
342
|
"type": "boolean"
|
|
343
|
+
},
|
|
344
|
+
"url": {
|
|
345
|
+
"description": "Product URL to analyze",
|
|
346
|
+
"name": "url",
|
|
347
|
+
"hasDynamicHelp": false,
|
|
348
|
+
"multiple": false,
|
|
349
|
+
"type": "option"
|
|
389
350
|
}
|
|
390
351
|
},
|
|
391
352
|
"hasDynamicHelp": false,
|
|
392
353
|
"hiddenAliases": [],
|
|
393
|
-
"id": "
|
|
354
|
+
"id": "init",
|
|
394
355
|
"pluginAlias": "@mailmodo/cli",
|
|
395
356
|
"pluginName": "@mailmodo/cli",
|
|
396
357
|
"pluginType": "core",
|
|
@@ -400,7 +361,7 @@
|
|
|
400
361
|
"relativePath": [
|
|
401
362
|
"dist",
|
|
402
363
|
"commands",
|
|
403
|
-
"
|
|
364
|
+
"init",
|
|
404
365
|
"index.js"
|
|
405
366
|
]
|
|
406
367
|
},
|
|
@@ -655,7 +616,46 @@
|
|
|
655
616
|
"status",
|
|
656
617
|
"index.js"
|
|
657
618
|
]
|
|
619
|
+
},
|
|
620
|
+
"emails": {
|
|
621
|
+
"aliases": [],
|
|
622
|
+
"args": {},
|
|
623
|
+
"description": "List and view configured email sequences",
|
|
624
|
+
"examples": [
|
|
625
|
+
"<%= config.bin %> emails",
|
|
626
|
+
"<%= config.bin %> emails --json"
|
|
627
|
+
],
|
|
628
|
+
"flags": {
|
|
629
|
+
"json": {
|
|
630
|
+
"description": "Output as JSON",
|
|
631
|
+
"name": "json",
|
|
632
|
+
"allowNo": false,
|
|
633
|
+
"type": "boolean"
|
|
634
|
+
},
|
|
635
|
+
"yes": {
|
|
636
|
+
"char": "y",
|
|
637
|
+
"description": "Skip confirmation prompts",
|
|
638
|
+
"name": "yes",
|
|
639
|
+
"allowNo": false,
|
|
640
|
+
"type": "boolean"
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
"hasDynamicHelp": false,
|
|
644
|
+
"hiddenAliases": [],
|
|
645
|
+
"id": "emails",
|
|
646
|
+
"pluginAlias": "@mailmodo/cli",
|
|
647
|
+
"pluginName": "@mailmodo/cli",
|
|
648
|
+
"pluginType": "core",
|
|
649
|
+
"strict": true,
|
|
650
|
+
"enableJsonFlag": false,
|
|
651
|
+
"isESM": true,
|
|
652
|
+
"relativePath": [
|
|
653
|
+
"dist",
|
|
654
|
+
"commands",
|
|
655
|
+
"emails",
|
|
656
|
+
"index.js"
|
|
657
|
+
]
|
|
658
658
|
}
|
|
659
659
|
},
|
|
660
|
-
"version": "0.0.
|
|
660
|
+
"version": "0.0.39-beta.pr41.64"
|
|
661
661
|
}
|