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

Function cancelCommand

src/lib/util.ts:52–58  ·  view source on GitHub ↗
(message?: string)

Source from the content-addressed store, hash-verified

50 * decides to cancel.
51 */
52export const cancelCommand = (message?: string): never => {
53 // Even non-error messages go to stderr so we don't pollute JSON or YAML going to stdout.
54 console.error(message ?? 'Action Canceled')
55
56 // eslint-disable-next-line no-process-exit
57 process.exit()
58}
59
60export const asTextBulletedList = (enums: string[]): string =>
61 enums.length === 0 ? '' : ('\n - ' + enums.join('\n - '))

Callers 9

handlerFunction · 0.85
getHistoryFunction · 0.85
getComponentFromUserFunction · 0.85
getCapabilityFromUserFunction · 0.85
getCommandFromUserFunction · 0.85
updateFromUserInputFunction · 0.85
createFromUserInputFunction · 0.85
util.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected