MCPcopy Create free account
hub / github.com/GNOME/gjs / run

Function run

modules/script/package.js:222–224  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

220 * @returns {number|undefined} the exit code of the module's main() function
221 */
222function 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

Callers 1

startFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected