MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / yamlFormatter

Function yamlFormatter

src/lib/command/output.ts:54–55  ·  view source on GitHub ↗
(indent: number)

Source from the content-addressed store, hash-verified

52 (data: T) => JSON.stringify(data, null, indent)
53
54export const yamlFormatter = <T extends object>(indent: number): OutputFormatter<T> =>
55 (data: T) => yaml.dump(data, { indent })
56
57export const itemTableFormatter =
58 <T extends object>(tableGenerator: TableGenerator, fieldDefinitions: TableFieldDefinition<T>[]): OutputFormatter<T> =>

Callers 2

buildOutputFormatterFunction · 0.85
output.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected