MCPcopy Create free account
hub / github.com/SethGammon/Citadel / set

Function set

scripts/loops.js:111–113  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

109 const template = arg('--template');
110 const options = {};
111 const set = (key, value) => {
112 if (value !== null && value !== undefined && value !== '') options[key] = value;
113 };
114
115 set('id', arg('--id'));
116 set('type', arg('--type', template ? null : 'loop'));

Callers 1

contractFromArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected