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

Function helpCommand

modules/script/_bootstrap/debugger.js:899–911  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

897}
898
899function helpCommand(cmd) {
900 if (!cmd) {
901 _printCommandsList();
902 } else {
903 var cmdGroups = _groupCommands();
904 var command = cmdGroups.find(c => c.aliases.includes(cmd));
905
906 if (command && command.helpText)
907 _printCommand(command);
908 else
909 print(`No help found for ${cmd} command`);
910 }
911}
912helpCommand.summary = 'Show help for the specified command else list all commands';
913helpCommand.helpText = `USAGE
914 help [command]

Callers

nothing calls this directly

Calls 3

_printCommandsListFunction · 0.85
_groupCommandsFunction · 0.85
_printCommandFunction · 0.85

Tested by

no test coverage detected