MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / delSnapshot

Method delSnapshot

src/common/configParser.ts:257–266  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

255 }
256
257 delSnapshot(name: string) {
258 const snapshots = this.get<ConfigSnapshots>("configSnapshots");
259 if (snapshots[name] != undefined) {
260 delete snapshots[name];
261 }
262 const newSnapshots = {
263 ...snapshots,
264 };
265 this.updateSnapshots(newSnapshots);
266 }
267
268 resumeSnapshot(name: string) {
269 const snapshot = this.get<ConfigSnapshots>("configSnapshots")[name];

Callers 1

handleMethod · 0.80

Calls 2

getMethod · 0.95
updateSnapshotsMethod · 0.95

Tested by

no test coverage detected