MCPcopy Create free account
hub / github.com/webpack/webpack-cli / #frame

Method #frame

packages/webpack-cli/src/webpack-cli.ts:1821–1828  ·  view source on GitHub ↗

* Prints a framed command screen: a branded header, the command body, and the * shared documentation footer. Used by `info`, `version` and `configtest`. * @param {object} meta The command name and a one-line description. * @param {Function} body A callback that prints the command's main out

(
    meta: { name: string; description: string },
    body: () => void | Promise<void>,
  )

Source from the content-addressed store, hash-verified

1819 * @param {Function} body A callback that prints the command's main output.
1820 */
1821 async #frame(
1822 meta: { name: string; description: string },
1823 body: () => void | Promise<void>,
1824 ): Promise<void> {
1825 this.logger.raw(this.#uiCommandHeader(meta.name, meta.description));
1826 await body();
1827 this.logger.raw(this.#uiFooter());
1828 }
1829
1830 /** Prints a status message with an icon; errors go to stderr, the rest to stdout. */
1831 #status(kind: StatusKind, message: string): void {

Callers 1

WebpackCLIClass · 0.95

Calls 2

#uiCommandHeaderMethod · 0.95
#uiFooterMethod · 0.95

Tested by

no test coverage detected