mirror of
https://github.com/trycua/computer.git
synced 2026-05-02 13:11:50 -05:00
Use correct return type for run_command
This commit is contained in:
@@ -462,7 +462,8 @@
|
||||
"dir_exists = await computer.interface.directory_exists(\"/path/to/directory\")\n",
|
||||
"\n",
|
||||
"# Run shell commands\n",
|
||||
"stdout, stderr = await computer.interface.run_command(\"ls -la\")"
|
||||
"result = await computer.interface.run_command(\"ls -la\")\n",
|
||||
"stdout, stderr, returncode = result.stdout, result.stderr, result.returncode"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -603,7 +604,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.2"
|
||||
"version": "3.13.5"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
Reference in New Issue
Block a user