MCPcopy
hub / github.com/SparkPost/heml / renderCLI

Function renderCLI

packages/heml/src/bin/commands/develop.js:69–77  ·  view source on GitHub ↗

* update the cli UI * @param {String} params.url URL for preview server * @param {String} params.status the current status * @param {String} params.time time to compile the heml * @param {String} params.size size of the HTML in mb

({ url, status, time, size })

Source from the content-addressed store, hash-verified

67 * @param {String} params.size size of the HTML in mb
68 */
69function renderCLI ({ url, status, time, size }) {
70 return logUpdate(boxen(
71 `${chalk.bgBlue.black(' HEML ')}\n\n` +
72 `- ${chalk.bold('Preview:')} ${url}\n` +
73 `- ${chalk.bold('Status:')} ${status}\n` +
74 `- ${chalk.bold('Compile time:')} ${time}\n` +
75 `- ${chalk.bold('Total size:')} ${size}`,
76 { padding: 1, margin: 1 }))
77}
78
79/**
80 * Launches a server that reloads when the update function is called

Callers 1

updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected