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

Function renderFlagSection

src/cli/parser/cli-help.ts:1010–1018  ·  view source on GitHub ↗
(title: string, definitions: FlagDefinition[])

Source from the content-addressed store, hash-verified

1008}
1009
1010function renderFlagSection(title: string, definitions: FlagDefinition[]): string {
1011 return renderAlignedSection(
1012 title,
1013 definitions.map((flag) => ({
1014 label: flag.usageLabel ?? '',
1015 description: flag.usageDescription ?? '',
1016 })),
1017 );
1018}
1019
1020function renderAlignedSection(
1021 title: string,

Callers 2

renderUsageTextFunction · 0.85
buildCommandUsageTextFunction · 0.85

Calls 1

renderAlignedSectionFunction · 0.85

Tested by

no test coverage detected