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

Method #uiStatusLine

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

A single status message prefixed with an icon (`✔`/`✖`/`⚠`/`ℹ`).

(kind: StatusKind, message: string)

Source from the content-addressed store, hash-verified

1721
1722 /** A single status message prefixed with an icon (`✔`/`✖`/`⚠`/`ℹ`). */
1723 #uiStatusLine(kind: StatusKind, message: string): string {
1724 const { green, red, yellow, cyan } = this.colors;
1725 const color = { success: green, error: red, warning: yellow, info: cyan }[kind];
1726 return `${color(UI_STATUS_ICONS[kind])} ${message}`;
1727 }
1728
1729 /** The header block printed at the top of a framed command (`info`, `version`, …). */
1730 #uiCommandHeader(name: string, description?: string): string {

Callers 1

#statusMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected