Execute a local shell command, honoring config options. Specifically, this method instantiates a `.Runner` subclass (according to the ``runner`` config option; default is `.Local`) and calls its ``.run`` method with ``command`` and ``kwargs``. See `.Runner.
(self, command: str, **kwargs: Any)
| 106 | self._set(_config=value) |
| 107 | |
| 108 | def run(self, command: str, **kwargs: Any) -> Result: |
| 109 | """ |
| 110 | Execute a local shell command, honoring config options. |
| 111 | |
| 112 | Specifically, this method instantiates a `.Runner` subclass (according |
| 113 | to the ``runner`` config option; default is `.Local`) and calls its |
| 114 | ``.run`` method with ``command`` and ``kwargs``. |
| 115 | |
| 116 | See `.Runner.run` for details on ``command`` and the available keyword |
| 117 | arguments. |
| 118 | |
| 119 | .. versionadded:: 1.0 |
| 120 | """ |
| 121 | runner = self.config.runners.local(self) |
| 122 | return self._run(runner, command, **kwargs) |
| 123 | |
| 124 | # NOTE: broken out of run() to allow for runner class injection in |
| 125 | # Fabric/etc, which needs to juggle multiple runner class types (local and |
no test coverage detected