MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / exec

Method exec

astrbot/core/computer/olayer/shell.py:11–21  ·  view source on GitHub ↗

Execute shell command

(
        self,
        command: str,
        cwd: str | None = None,
        env: dict[str, str] | None = None,
        timeout: int | None = 300,
        shell: bool = True,
        background: bool = False,
    )

Source from the content-addressed store, hash-verified

9 """Shell operations component"""
10
11 async def exec(
12 self,
13 command: str,
14 cwd: str | None = None,
15 env: dict[str, str] | None = None,
16 timeout: int | None = 300,
17 shell: bool = True,
18 background: bool = False,
19 ) -> dict[str, Any]:
20 """Execute shell command"""
21 ...

Callers 9

callMethod · 0.45
callMethod · 0.45
callMethod · 0.45
callMethod · 0.45
_exec_python_jsonFunction · 0.45
_apply_skills_to_sandboxFunction · 0.45
_scan_sandbox_skillsFunction · 0.45
_sync_skills_to_sandboxFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected