@mailmodo/cli 0.0.56-beta.pr58.98 → 0.0.56-beta.pr58.99
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/messages.js +13 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/dist/lib/messages.js
CHANGED
|
@@ -69,8 +69,19 @@ export function restoredFromServerHint(ids) {
|
|
|
69
69
|
return (`Template ${chalk.cyan(id)} was not found locally and has been refreshed from the server.\n` +
|
|
70
70
|
` Review it with ${chalk.cyan(`mailmodo preview ${id}`)}, then run ${chalk.cyan('mailmodo deploy')} again.`);
|
|
71
71
|
}
|
|
72
|
-
const
|
|
73
|
-
|
|
72
|
+
const header = 'Template ID';
|
|
73
|
+
const colWidth = Math.max(header.length, ...ids.map((id) => id.length));
|
|
74
|
+
const pad = (s) => s.padEnd(colWidth);
|
|
75
|
+
const hr = '─'.repeat(colWidth + 2);
|
|
76
|
+
const table = [
|
|
77
|
+
` ┌${hr}┐`,
|
|
78
|
+
` │ ${chalk.bold(pad(header))} │`,
|
|
79
|
+
` ├${hr}┤`,
|
|
80
|
+
...ids.map((id) => ` │ ${chalk.cyan(pad(id))} │`),
|
|
81
|
+
` └${hr}┘`,
|
|
82
|
+
].join('\n');
|
|
83
|
+
return (`${ids.length} templates were not found locally and have been refreshed from the server:\n\n` +
|
|
84
|
+
`${table}\n\n` +
|
|
74
85
|
` Review each with ${chalk.cyan('mailmodo preview <id>')}, then run ${chalk.cyan('mailmodo deploy')} again.`);
|
|
75
86
|
}
|
|
76
87
|
export function pauseSuccess(sequenceId) {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED