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

Function getConfig

src/commands/config.ts:69–72  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

67 const baseURLValue = (item: ProfileWithName): string | undefined =>
68 (item.profile?.clientIdProvider as undefined | Record<string, string>)?.baseURL
69 const getConfig = async (name: string): Promise<ProfileWithName> => {
70 const config = command.cliConfig.mergedProfiles
71 return { name, profile: config[name] }
72 }
73 const listConfigs = async (): Promise<ProfileWithName[]> => {
74 const config = command.cliConfig.mergedProfiles
75 const list = Object.keys(config).map(it => {

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected