MCPcopy Create free account
hub / github.com/langgenius/dify / renderTopicRows

Function renderTopicRows

cli/src/framework/help.ts:212–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210]
211
212function renderTopicRows(): string {
213 const width = TOPICS.reduce((max, t) => Math.max(max, t.name.length), 0) + 2
214 return TOPICS.map(t => ` ${t.name.padEnd(width)}${t.summary}`).join('\n')
215}
216
217function renderGlobalFlagRows(): string {
218 const width = GLOBAL_FLAG_HELP.reduce((max, f) => Math.max(max, f.label.length), 0) + 2

Callers 1

formatTopLevelHelpTextFunction · 0.85

Calls 3

reduceMethod · 0.45
joinMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected