Skip to content

CommandExecutor

Base classes

Name Children Inherits
Protocol
typing
Base class for protocol classes.

⋔ Inheritance diagram

graph TD
  3176109514["_runner.CommandExecutor"]
  1073422405["typing.Protocol"]
  3481597255["typing.Generic"]
  2751680898["builtins.object"]
  1073422405 --> 3176109514
  3481597255 --> 1073422405
  2751680898 --> 3481597255

🛈 DocStrings

Bases: Protocol

Protocol for command execution.

Source code in src/anyenv/lsp_servers/_runner.py
class CommandExecutor(Protocol):
    """Protocol for command execution."""

    async def __call__(self, command: str) -> CommandResult:
        """Execute a command and return the result."""
        ...

__call__ async

__call__(command: str) -> CommandResult

Execute a command and return the result.

Source code in src/anyenv/lsp_servers/_runner.py
async def __call__(self, command: str) -> CommandResult:
    """Execute a command and return the result."""
    ...

:fa-brands-github: Show source on GitHub