MCPcopy
hub / github.com/acode/cli / set

Method set

cli/config.js:106–113  ·  view source on GitHub ↗
(key, value, log)

Source from the content-addressed store, hash-verified

104 }
105
106 set (key, value, log) {
107 let oldValue = this.get(key);
108 log && console.log(
109 `[${this.fullpath()}] Setting "${key}=${value}"` +
110 oldValue !== newValue ? ` (was "${key}=${oldValue}")` : ''
111 );
112 return this.data[key] = value;
113 }
114
115 unset (key) {
116 return delete this.data[key];

Callers 3

saveMethod · 0.95
runMethod · 0.80
setAccessTokenMethod · 0.80

Calls 2

getMethod · 0.95
fullpathMethod · 0.95

Tested by

no test coverage detected