MCPcopy Create free account
hub / github.com/massCodeIO/massCode / readString

Function readString

src/main/import/snippets/raycast.ts:47–56  ·  view source on GitHub ↗
(record: RaycastRecord, keys: string[])

Source from the content-addressed store, hash-verified

45}
46
47function readString(record: RaycastRecord, keys: string[]): string | null {
48 for (const key of keys) {
49 const value = record[key]
50 if (typeof value === 'string' && value.trim()) {
51 return value
52 }
53 }
54
55 return null
56}
57
58function getFolderPath(record: RaycastRecord): string[] {
59 const folder = readString(record, ['folder', 'group', 'collection'])

Callers 2

getFolderPathFunction · 0.70
parseRaycastSnippetFilesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected