import { style } from "../../../util/theme.js";
export function formatScopedNames(names, empty = "none") {
    if (!names || names.length === 0)
        return empty;
    const preview = names.slice(0, 8).join(", ");
    return names.length > 8 ? `${preview}, … +${names.length - 8}` : preview;
}
export function section(title, lines = []) {
    return [
        style.phosphorBold(`\n  ${title}`),
        style.phosphorDim("  ─────────────────────────────────────────────"),
        ...lines,
        "",
    ].join("\n");
}
export function commandLine(command, aliases, description) {
    const aliasText = aliases ? ` ${style.phosphorDim(aliases)}` : "";
    return `  ${style.phosphor(command)}${aliasText} — ${description}`;
}
