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

Function itemName

src/lib/command/command-util.ts:12–14  ·  view source on GitHub ↗
(command: Naming)

Source from the content-addressed store, hash-verified

10}
11
12export function itemName(command: Naming): string {
13 return command.itemName ?? 'item'
14}
15
16export function pluralItemName(command: Naming): string {
17 return command.pluralItemName ?? (command.itemName ? `${command.itemName}s` : 'items')

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected