MCPcopy Create free account
hub / github.com/driangle/taskmd / GetSource

Function GetSource

apps/cli/internal/sync/registry.go:16–22  ·  view source on GitHub ↗

GetSource returns a registered source by name.

(name string)

Source from the content-addressed store, hash-verified

14
15// GetSource returns a registered source by name.
16func GetSource(name string) (Source, error) {
17 s, ok := sources[name]
18 if !ok {
19 return nil, fmt.Errorf("unknown source: %q (registered: %v)", name, RegisteredNames())
20 }
21 return s, nil
22}
23
24// Unregister removes a source from the registry. Intended for testing.
25func Unregister(name string) {

Callers 2

RunSyncMethod · 0.85
fetchImportTasksFunction · 0.85

Calls 1

RegisteredNamesFunction · 0.85

Tested by

no test coverage detected