MCPcopy Create free account
hub / github.com/Noumena-Network/code / getPath

Function getPath

src/tools/ConfigTool/ConfigTool.test.ts:128–130  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

126 return settings[key as keyof typeof settings]
127 },
128 getPath(key: string) {
129 return key.split('.')
130 },
131 getOptionsForSetting(key: string) {
132 const config = settings[key as keyof typeof settings]
133 return config && 'options' in config ? [...(config.options ?? [])] : undefined

Callers 1

callFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected