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

Function serialize

cli/src/framework/help.ts:42–46  ·  view source on GitHub ↗
(value: unknown, format: string)

Source from the content-addressed store, hash-verified

40}
41
42function serialize(value: unknown, format: string): string {
43 if (format === 'yaml')
44 return yaml.dump(value, { indent: 2, lineWidth: -1 })
45 return `${JSON.stringify(value, null, 2)}\n`
46}
47
48function flagLabel(name: string, def: FlagDefinition): string {
49 const aliases: string[] = []

Callers 4

formatHelpFunction · 0.70
formatTopicFunction · 0.70
formatCommandListFunction · 0.70
formatTopLevelHelpFunction · 0.70

Calls 1

dumpMethod · 0.45

Tested by

no test coverage detected