MCPcopy Create free account
hub / github.com/witheve/Eve / get

Function get

src/runtime/eveSource.ts:31–38  ·  view source on GitHub ↗
(file:string, workspace = "eve")

Source from the content-addressed store, hash-verified

29
30/** Given an explicit workspace, return the contents of the file. */
31export function get(file:string, workspace = "eve"):string|undefined {
32 if(!workspaces[workspace]) {
33 console.error(`Unable to get '${file}' from unregistered workspace '${workspace}'`);
34 return;
35 }
36
37 return fetchFile(file, workspace);
38}
39
40/** Using the inferred workspace from the file path, return the contents of the file. */
41export function find(file:string):string|undefined {

Callers 1

findFunction · 0.70

Calls 2

fetchFileFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected