Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pyinvoke/invoke
/ sudo
Method
sudo
tests/context.py:62–63 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
60
assert runner_class.mock_calls == [call(c), call().run(
"foo"
)]
61
62
def
sudo(self):
63
self._expect_attr(
"sudo"
)
64
65
class
configuration_proxy:
66
"Dict-like proxy for self.config"
Callers
15
prefixes_command_with_sudo
Method · 0.45
optional_user_argument_adds_u_and_H_flags
Method · 0.45
honors_config_for_user_value
Method · 0.45
user_kwarg_wins_over_config
Method · 0.45
echo_hides_extra_sudo_flags
Method · 0.45
honors_config_for_prompt_value
Method · 0.45
explicit_env_vars_are_preserved
Method · 0.45
_expect_responses
Method · 0.45
config_only
Method · 0.45
config_use_does_not_modify_config
Method · 0.45
both_kwarg_and_config
Method · 0.45
passes_through_other_run_kwargs
Method · 0.45
Calls
1
_expect_attr
Method · 0.95
Tested by
no test coverage detected