shell
This package lets Cairo code spawn a command on the host machine and capture its standard
output. It uses the
shell
oracleprotocol. Each call is a
one‑shot subprocess: no processes are kept alive between invocations. The standard error is
routed to executor's log stream.
The command line is parsed and executed by a minimal cross-platform shell, the same that powers deno tasks.
Use it primarily in tests, prototypes, or local development scenarios where you need to call small utilities, format data, or fetch information that would be cumbersome to embed in Cairo directly.
Fully qualified path: shell
Free functions
exec | Executes a shell command and returns its exit code and standard output. Prefer using output if you only care about successful commands and want an error otherwise.... |
output | Runs a shell command and returns its stdout on success. If the underlying command exits with a non‑zero status, an error is returned which message includes the exit code.... |