MCPcopy
hub / github.com/meteor/meteor / parseMobileServerOption

Function parseMobileServerOption

tools/cli/commands.js:101–113  ·  view source on GitHub ↗
(mobileServerOption,
  optionName = 'mobile-server')

Source from the content-addressed store, hash-verified

99}
100
101function parseMobileServerOption(mobileServerOption,
102 optionName = 'mobile-server') {
103 let parsedMobileServerUrl = utils.parseUrl(
104 mobileServerOption,
105 { protocol: 'http' });
106
107 if (!parsedMobileServerUrl.hostname) {
108 Console.error(`--${optionName} must include a hostname.`);
109 throw new main.ExitWithCode(1);
110 }
111
112 return parsedMobileServerUrl;
113}
114
115function parseCordovaServerPortOption(options = {}) {
116 const cordovaServerPortOption = options['cordova-server-port'];

Callers 2

buildCommandFunction · 0.85

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…