MCPcopy
hub / github.com/yeoman/yo / navigate

Method navigate

lib/router.js:37–44  ·  view source on GitHub ↗

* Navigate to a route * @param {String} name Route name * @param {*} arg A single argument to pass to the route handler * @return {Promise }

(name, argument)

Source from the content-addressed store, hash-verified

35 * @return {Promise<this>}
36 */
37 async navigate(name, argument) {
38 if (typeof this.routes[name] === 'function') {
39 await this.routes[name].call(null, this, argument);
40 return this;
41 }
42
43 throw new Error(`No routes called: ${name}`);
44 }
45
46 /**
47 * Register a route handler

Callers 15

runYoFunction · 0.95
promptInstallOptionsFunction · 0.80
installGeneratorFunction · 0.80
homeFunction · 0.80
clearConfigFunction · 0.80
_clearGeneratorConfigFunction · 0.80
updateSuccessFunction · 0.80
helpFunction · 0.80
route-home.jsFile · 0.80
route-install.jsFile · 0.80
route-help.jsFile · 0.80
router.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected