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

Method #uiCommandHeader

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

The header block printed at the top of a framed command (`info`, `version`, …).

(name: string, description?: string)

Source from the content-addressed store, hash-verified

1728
1729 /** The header block printed at the top of a framed command (`info`, `version`, …). */
1730 #uiCommandHeader(name: string, description?: string): string {
1731 const lines = ["", this.#uiHeader(`webpack ${name}`), this.#uiDivider()];
1732
1733 if (description) {
1734 lines.push(description, "");
1735 }
1736
1737 return lines.join("\n");
1738 }
1739
1740 /** The documentation footer shared by every help and framed-command screen. */
1741 #uiFooter(options: { verbose?: boolean } = {}): string {

Callers 1

#frameMethod · 0.95

Calls 2

#uiHeaderMethod · 0.95
#uiDividerMethod · 0.95

Tested by

no test coverage detected