MCPcopy Create free account
hub / github.com/play-co/devkit / client

Function client

src/util/gitClient/index.js:113–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 opts = merge(opts, {cwd: dir});
112
113 var client = function () {
114 var last = arguments.length - 1;
115 var singleOpts = arguments[last - 1];
116 var cb = arguments[last];
117
118 if (typeof cb !== 'function') {
119 singleOpts = cb;
120 cb = void 0;
121 last++;
122 }
123
124 if (typeof singleOpts === 'object') {
125 singleOpts = merge({}, singleOpts, opts);
126 --last;
127 } else {
128 singleOpts = merge({}, opts);
129 }
130
131 // TODO fix arguments allocation
132 var args = Array.prototype.slice.call(arguments, 0, last);
133 return spawnWithLogger(args, singleOpts, cb);
134 };
135
136 client.path = dir;
137

Callers

nothing calls this directly

Calls 1

spawnWithLoggerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…