MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / updateSnapshots

Method updateSnapshots

src/common/configParser.ts:235–239  ·  view source on GitHub ↗
(snapshots: ConfigSnapshots)

Source from the content-addressed store, hash-verified

233 }
234
235 private updateSnapshots(snapshots: ConfigSnapshots) {
236 this.set("configSnapshots", snapshots);
237 bus.iat("configSnapshot"); //通知快照列表更新
238 bus.iat("delConfigSnapshot");
239 }
240
241 newSnapshot(name: string) {
242 const snapshot: ConfigSnapshot = JSON.parse(

Callers 2

newSnapshotMethod · 0.95
delSnapshotMethod · 0.95

Calls 1

setMethod · 0.95

Tested by

no test coverage detected