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

Function getSnippetImportSourceName

src/main/import/snippets/source.ts:3–21  ·  view source on GitHub ↗
(source: ImportSource)

Source from the content-addressed store, hash-verified

1import type { ImportSource } from '../common/types'
2
3export function getSnippetImportSourceName(source: ImportSource): string {
4 if (source === 'github-gists') {
5 return 'GitHub Gists'
6 }
7
8 if (source === 'vscode-snippets') {
9 return 'VS Code'
10 }
11
12 if (source === 'raycast-snippets') {
13 return 'Raycast'
14 }
15
16 if (source === 'snippetslab') {
17 return 'SnippetsLab'
18 }
19
20 return 'Imported'
21}

Callers 2

previewSnippetImportFunction · 0.90
createImportRunFolderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected