UNPKG

@gguf/claw

Version:

WhatsApp gateway CLI (Baileys web) with Pi RPC agent

17 lines (15 loc) 673 B
import { R as theme } from "./subsystem-46MXi6Ip.js"; //#region src/cli/help-format.ts function formatHelpExample(command, description) { return ` ${theme.command(command)}\n ${theme.muted(description)}`; } function formatHelpExampleLine(command, description) { if (!description) return ` ${theme.command(command)}`; return ` ${theme.command(command)} ${theme.muted(`# ${description}`)}`; } function formatHelpExamples(examples, inline = false) { const formatter = inline ? formatHelpExampleLine : formatHelpExample; return examples.map(([command, description]) => formatter(command, description)).join("\n"); } //#endregion export { formatHelpExamples as t };