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

Function newOutputTable

src/lib/table-generator.ts:250–257  ·  view source on GitHub ↗
(options?: Partial<TableOptions>)

Source from the content-addressed store, hash-verified

248 }
249
250 const newOutputTable = (options?: Partial<TableOptions>): Table => {
251 const configuredOptions = { ...tableOptions }
252
253 if (options) {
254 return setupTable({ ...configuredOptions, ...options })
255 }
256 return setupTable(configuredOptions)
257 }
258
259 const buildTableFromItem = <T extends object>(item: T, definitions: TableFieldDefinition<T>[]): string => {
260 const table = newOutputTable()

Callers 2

buildTableFromItemFunction · 0.85
buildTableFromListFunction · 0.85

Calls 1

setupTableFunction · 0.85

Tested by

no test coverage detected