MCPcopy Create free account
hub / github.com/Make-md/makemd / saveCommand

Method saveCommand

src/core/spaceManager/spaceManager.ts:287–290  ·  view source on GitHub ↗
(path: string, schemaId: string, saveCommand: (prev: Command) => Command)

Source from the content-addressed store, hash-verified

285 this.superstate.reloadActions(this.spaceInfoForPath(path)));
286 }
287 public saveCommand (path: string, schemaId: string, saveCommand: (prev: Command) => Command) {
288 return this.adapterForPath(path).saveCommand(path, schemaId, saveCommand).then(f =>
289 this.superstate.reloadActions(this.spaceInfoForPath(path)));
290 }
291 //basic item operations
292 public allPaths (type?: string[]) {
293 return this.spaceAdapters.flatMap(f => f.allPaths(type));

Callers

nothing calls this directly

Calls 4

adapterForPathMethod · 0.95
spaceInfoForPathMethod · 0.95
saveCommandMethod · 0.65
reloadActionsMethod · 0.45

Tested by

no test coverage detected