* This is the function to use if you want to have multiple * entry points in one package. * You must define a main(ARGV) function inside the passed * in module, and then the launcher would be * * imports.package.init(...); * imports.package.run(imports.entrypoint); * * @param {object} module
(module)
| 220 | * @returns {number|undefined} the exit code of the module's main() function |
| 221 | */ |
| 222 | function run(module) { |
| 223 | return module.main([System.programInvocationName].concat(ARGV)); |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * Mark a dependency on a specific version of one or more |