MCPcopy Create free account
hub / github.com/play-co/devkit / getHelp

Function getHelp

src/commands/debug.js:73–91  ·  view source on GitHub ↗
(app, target)

Source from the content-addressed store, hash-verified

71
72
73function getHelp(app, target) {
74 if (target) {
75 var buildModule = getBuildModule(app, target);
76 if (buildModule) {
77 return getHelpText(target, buildModule);
78 } else {
79 if (target) {
80 return "The build target " + target + " is not valid (it may not be installed)";
81 }
82
83 return "Valid targets are " + Object.keys(getBuildModules(app)).join(', ');
84 }
85 } else {
86 var modules = getBuildModules(app);
87 return 'Build Targets:\n\n' + Object.keys(modules).map(function (target) {
88 return ' ' + getHelpText(target, modules[target]);
89 }).join('\n');
90 }
91}
92
93function getHelpText(target, buildModule) {
94 if (buildModule.opts) {

Callers 1

debug.jsFile · 0.85

Calls 3

getBuildModuleFunction · 0.85
getHelpTextFunction · 0.85
getBuildModulesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…