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

Function handler

src/commands/capabilities/namespaces.ts:37–46  ·  view source on GitHub ↗
(argv: ArgumentsCamelCase<CommandArgs>)

Source from the content-addressed store, hash-verified

35 .epilog(buildEpilog({ command }))
36
37const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
38 const command = await apiOrganizationCommand(argv)
39
40 const config: OutputListConfig<CapabilityNamespace> = {
41 sortKeyName: 'name',
42 primaryKeyName: 'name',
43 listTableFieldDefinitions: ['name', 'ownerType', 'ownerId'],
44 }
45 await outputList(command, config, () => command.client.capabilities.listNamespaces())
46}
47
48const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler }
49export default cmd

Callers

nothing calls this directly

Calls 2

apiOrganizationCommandFunction · 0.85
outputListFunction · 0.85

Tested by

no test coverage detected