MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / k3

Function k3

out/cli.cjs:65106–65108  ·  view source on GitHub ↗
(t2)

Source from the content-addressed store, hash-verified

65104 }
65105 if (n2.length > 1 && r3.push(n2.join(" ")), "commands" in t2 && t2.commands?.length && r3.push(`${t2.name} <command>`), r3.length > 0) return { id: "usage", type: "section", data: { title: "Usage:", body: r3.join(`
65106`) } };
65107 }
65108}
65109function _3(t2) {
65110 return !("commands" in t2) || !t2.commands?.length ? void 0 : { id: "commands", type: "section", data: { title: "Commands:", body: { type: "table", data: { tableData: t2.commands.map((n2) => [n2.options.name, n2.options.help ? n2.options.help.description : ""]), tableOptions: [{ width: "content-width", paddingLeft: 2, paddingRight: 8 }] } }, indentBody: 0 } };
65111}

Callers

nothing calls this directly

Calls 2

D2Function · 0.85
keysMethod · 0.45

Tested by

no test coverage detected