MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / addString

Function addString

utils/lang.js:366–377  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

364 }
365
366 function addString(string) {
367 string = string || arg;
368 update((strings) => {
369 if (key in strings) {
370 console.error("String already exists");
371 process.exit(1);
372 } else {
373 strings[key] = string;
374 return strings;
375 }
376 });
377 }
378 }
379}
380

Callers 1

askTranslationFunction · 0.85

Calls 3

exitMethod · 0.80
updateFunction · 0.70
errorMethod · 0.45

Tested by

no test coverage detected