MCPcopy Index your code
hub / github.com/SmartThingsCommunity/smartthings-cli / buildTableOutput

Function buildTableOutput

src/commands/apps/create.ts:68–79  ·  view source on GitHub ↗
(data: AppCreationResponse)

Source from the content-addressed store, hash-verified

66 }
67
68 const buildTableOutput = (data: AppCreationResponse): string => {
69 const basicInfo = command.tableGenerator.buildTableFromItem(data.app, tableFieldDefinitions)
70
71 const oauthInfo = data.oauthClientId || data.oauthClientSecret
72 ? command.tableGenerator.buildTableFromItem(data, ['oauthClientId', 'oauthClientSecret'])
73 : undefined
74 return oauthInfo
75 ? `Basic App Data:\n${basicInfo}\n\n` +
76 'OAuth Info (you will not be able to see the OAuth info again so please save' +
77 ` it now!):\n${oauthInfo}`
78 : basicInfo
79 }
80
81 await inputAndOutputItem(
82 command,

Callers 15

handlerFunction · 0.70
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected