MCPcopy Index your code
hub / github.com/witheve/Eve / set

Function set

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

Source from the content-addressed store, hash-verified

47
48/** Given an explicit workspace, update the contents of the file. */
49export function set(file:string, content:string, workspace = "eve") {
50 if(!workspaces[workspace]) {
51 console.error(`Unable to set '${file}' from unregistered workspace '${workspace}'`);
52 return;
53 }
54
55 saveFile(file, content, workspace);
56}
57
58/** Using the inferred workspace from the file path, update the contents of the file. */
59export function save(file:string, content:string) {

Callers 1

saveFunction · 0.85

Calls 2

saveFileFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected