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

Function commandSummary

src/build-tools/update-readme.ts:12–18  ·  view source on GitHub ↗
(command: CommandModule<object, unknown>)

Source from the content-addressed store, hash-verified

10const endMarker = '<!-- END: commands -->'
11
12const commandSummary = (command: CommandModule<object, unknown>): string => {
13 if (typeof command.command === 'string') {
14 return command.command
15 }
16
17 throw Error('currently unsupported command type')
18}
19
20const commandREADMELines = [
21 '<!-- Do not manually this file between the "BEGIN commands" and "END commands" comments. -->',

Callers 1

update-readme.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected