* 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>,
)
| 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 { |
no test coverage detected