MCPcopy Index your code
hub / github.com/pyinvoke/invoke / sudo

Method sudo

invoke/context.py:572–577  ·  view source on GitHub ↗
(self, command: str, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

570 return self._yield_result("__run", command)
571
572 def sudo(self, command: str, *args: Any, **kwargs: Any) -> Result:
573 # TODO: this completely nukes the top-level behavior of sudo(), which
574 # could be good or bad, depending. Most of the time I think it's good.
575 # No need to supply dummy password config, etc.
576 # TODO: see the TODO from run() re: injecting arg/kwarg values
577 return self._yield_result("__sudo", command)
578
579 def set_result_for(
580 self, attname: str, command: str, result: Result

Callers 2

sudo_also_coveredMethod · 0.95
sudoMethod · 0.95

Calls 1

_yield_resultMethod · 0.95

Tested by

no test coverage detected