MCPcopy Create free account
hub / github.com/angular/dev-infra / main

Function main

bazel/rules/rules_angular/src/ng_examples_db/db_generator.mjs:211–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209}
210
211function main() {
212 const argv = process.argv.slice(2);
213 if (argv.length !== 2) {
214 console.error('Must include 2 arguments.');
215 process.exit(1);
216 }
217
218 const [inPath, outPath] = argv;
219
220 try {
221 generate(inPath, outPath);
222 } catch (error) {
223 console.error('An error happened:');
224 console.error(error);
225 process.exit(127);
226 }
227}
228
229main();

Callers 1

db_generator.mjsFile · 0.70

Calls 3

generateFunction · 0.85
sliceMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected