MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / getConfig2Save

Method getConfig2Save

src/common/configParser.ts:221–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219 }
220
221 getConfig2Save() {
222 let config2Save: { [key: string]: string } = store.state.config;
223 this.notSavingKeys.map((key) => delete config2Save[key]); //去掉不需要保存的
224 return config2Save;
225 }
226
227 save() {
228 writeFileSync(this.file, JSON.stringify(this.getConfig2Save(), null, 4));

Callers 2

saveMethod · 0.95
newSnapshotMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected