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

Function formatHelp

cli/src/framework/help.ts:150–155  ·  view source on GitHub ↗
(ctor: CommandConstructor, path: string, format = '')

Source from the content-addressed store, hash-verified

148}
149
150export function formatHelp(ctor: CommandConstructor, path: string, format = ''): string {
151 if (isStructured(format))
152 return serialize(describeCommand(ctor, path), format)
153
154 return formatHelpText(ctor, path)
155}
156
157export function formatTopic(topic: HelpTopic, format = ''): string {
158 if (isStructured(format))

Callers 2

help.test.tsFile · 0.90
runFunction · 0.90

Calls 4

isStructuredFunction · 0.85
describeCommandFunction · 0.85
formatHelpTextFunction · 0.85
serializeFunction · 0.70

Tested by

no test coverage detected