MCPcopy Create free account
hub / github.com/parse-community/parse-server / parseEnvironment

Function parseEnvironment

src/cli/utils/commander.js:62–74  ·  view source on GitHub ↗
(env = {})

Source from the content-addressed store, hash-verified

60};
61
62function parseEnvironment(env = {}) {
63 return Object.keys(_reverseDefinitions).reduce((options, key) => {
64 if (env[key]) {
65 const originalKey = _reverseDefinitions[key];
66 let action = option => option;
67 if (typeof _definitions[originalKey] === 'object') {
68 action = _definitions[originalKey].action || action;
69 }
70 options[_reverseDefinitions[key]] = action(env[key]);
71 }
72 return options;
73 }, {});
74}
75
76function parseConfigFile(program) {
77 let options = {};

Callers 1

commander.jsFile · 0.85

Calls 1

actionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…