Use correct return type for run_command

This commit is contained in:
James Murdza
2025-08-21 17:32:36 -04:00
parent 3b76612d66
commit f9a317c190
+3 -2
View File
@@ -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,