MCPcopy Index your code
hub / github.com/nodejs/node / do_help

Method do_help

deps/v8/tools/grokdump.py:3797–3812  ·  view source on GitHub ↗
(self, cmd=None)

Source from the content-addressed store, hash-verified

3795 return address
3796
3797 def do_help(self, cmd=None):
3798 if len(cmd) == 0:
3799 print("Available commands")
3800 print("=" * 79)
3801 prefix = "do_"
3802 methods = inspect.getmembers(InspectionShell, predicate=inspect.ismethod)
3803 for name,method in methods:
3804 if not name.startswith(prefix): continue
3805 doc = inspect.getdoc(method)
3806 if not doc: continue
3807 name = prefix.join(name.split(prefix)[1:])
3808 description = doc.splitlines()[0]
3809 print((name + ": ").ljust(16) + description)
3810 print("=" * 79)
3811 else:
3812 return super(InspectionShell, self).do_help(cmd)
3813
3814 def do_p(self, cmd):
3815 """ see print """

Callers

nothing calls this directly

Calls 4

printFunction · 0.70
joinMethod · 0.45
splitMethod · 0.45
splitlinesMethod · 0.45

Tested by

no test coverage detected