MCPcopy Index your code
hub / github.com/callstack/agent-device / renderTextSection

Function renderTextSection

src/cli/parser/cli-help.ts:1035–1040  ·  view source on GitHub ↗
(title: string, lines: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

1033}
1034
1035function renderTextSection(title: string, lines: ReadonlyArray<string>): string {
1036 if (lines.length === 0) {
1037 return `${title}\n (none)`;
1038 }
1039 return [title, ...lines.map((line) => ` ${line}`)].join('\n');
1040}
1041
1042function renderCommandSection(
1043 commands: Array<{ name: string; schema: CommandSchema; usage: string }>,

Callers 1

renderUsageTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected