MCPcopy
hub / github.com/meteor/meteor / parseRunTargets

Function parseRunTargets

tools/cli/commands.js:148–163  ·  view source on GitHub ↗
(targets)

Source from the content-addressed store, hash-verified

146}
147
148export function parseRunTargets(targets) {
149 return targets.map((target) => {
150 const targetParts = target.split('-');
151 const platform = targetParts[0];
152 const isDevice = targetParts[1] === 'device';
153
154 if (platform == 'ios') {
155 return new iOSRunTarget(isDevice);
156 } else if (platform == 'android') {
157 return new AndroidRunTarget(isDevice);
158 } else {
159 Console.error(`Unknown run target: ${target}`);
160 throw new main.ExitWithCode(1);
161 }
162 });
163};
164
165///////////////////////////////////////////////////////////////////////////////
166// options that act like commands

Callers 2

doRunCommandFunction · 0.85
doTestCommandFunction · 0.85

Calls 2

mapMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…