MCPcopy
hub / github.com/anomalyco/opencode / cells

Function cells

packages/opencode/src/cli/cmd/run/splash.ts:48–70  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

46}
47
48function cells(line: string): Cell[] {
49 const list: Cell[] = []
50 for (const char of line) {
51 if (char === "_") {
52 list.push({ char: " ", mark: "full" })
53 continue
54 }
55
56 if (char === "^") {
57 list.push({ char: "▀", mark: "mix" })
58 continue
59 }
60
61 if (char === "~") {
62 list.push({ char: "▀", mark: "top" })
63 continue
64 }
65
66 list.push({ char, mark: "text" })
67 }
68
69 return list
70}
71
72function title(text: string | undefined): string {
73 if (!text) {

Callers 1

drawFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected