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

Function _notify

deps/v8/tools/dev/gm.py:388–393  ·  view source on GitHub ↗
(summary, body)

Source from the content-addressed store, hash-verified

386
387
388def _notify(summary, body):
389 if (shutil.which('notify-send') is not None and
390 os.environ.get("DISPLAY") is not None):
391 _call(f"notify-send '{summary}' '{body}'", silent=True)
392 else:
393 print(f"{summary} - {body}")
394
395
396def _get_machine():

Callers 2

buildMethod · 0.85
mainFunction · 0.85

Calls 3

_callFunction · 0.85
getMethod · 0.65
printFunction · 0.50

Tested by

no test coverage detected