MCPcopy
hub / github.com/infinitered/ignite / command

Function command

src/tools/pretty.ts:14–25  ·  view source on GitHub ↗
(
  m: string | { m: string; width: number } = "",
  second = "",
  examples: string[] = [],
)

Source from the content-addressed store, hash-verified

12export const heading = (m = "") => p(white(bold(m)))
13
14export const command = (
15 m: string | { m: string; width: number } = "",
16 second = "",
17 examples: string[] = [],
18) => {
19 m = typeof m === "string" ? m : m.m + " ".repeat(m.width - m.m.length)
20 p(white(m) + " " + gray(second))
21 const indent = m.length + 2
22 if (examples) {
23 examples.forEach((ex) => p(gray(" ".repeat(indent) + white(ex))))
24 }
25}
26
27export const direction = (m = "") => p(red(m))
28

Callers 9

validateGeneratorFunction · 0.90
showGeneratorHelpFunction · 0.90
showGeneratorsFunction · 0.90
deprecated.tsFile · 0.90
helpFunction · 0.90
generateFunction · 0.90
issue.tsFile · 0.90
help.tsFile · 0.90
generateFunction · 0.90

Calls 1

pFunction · 0.85

Tested by

no test coverage detected