MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get

Method get

pager_lib/getmac/getmac.py:1270–1272  ·  view source on GitHub ↗
(self, arg="")

Source from the content-addressed store, hash-verified

1268 return check_command("netstat")
1269
1270 def get(self, arg=""): # type: (str) -> Optional[str]
1271 output = _popen("netstat", "-r")
1272 return _search(r"default[ ]+\S+[ ]+\S+[ ]+(\S+)[\r\n]+", output)
1273
1274
1275# TODO: order methods by effectiveness/reliability

Callers

nothing calls this directly

Calls 2

_popenFunction · 0.85
_searchFunction · 0.85

Tested by

no test coverage detected